Struct FatBinary
pub struct FatBinary {
pub nb_macho: u32,
/* private fields */
}Expand description
This structure represents a FAT Mach-O
Fields§
§nb_macho: u32Implementations§
§impl FatBinary
impl FatBinary
pub fn parse_with_config<P: AsRef<Path>>(
path: P,
config: &Config,
) -> Option<Self>
pub fn parse_with_config<P: AsRef<Path>>( path: P, config: &Config, ) -> Option<Self>
Create a FatBinary from the given Mach-O path with the provided parser configuration.
pub fn with_cpu(&self, cpu: CpuType) -> Option<Binary>
pub fn with_cpu(&self, cpu: CpuType) -> Option<Binary>
Gets the Binary that matches the given architecture
pub fn iter(&self) -> FatBinaryIterator<'_> ⓘ
pub fn iter(&self) -> FatBinaryIterator<'_> ⓘ
Iterator over the crate::macho::Binary
Trait Implementations§
Auto Trait Implementations§
impl Freeze for FatBinary
impl RefUnwindSafe for FatBinary
impl !Send for FatBinary
impl !Sync for FatBinary
impl Unpin for FatBinary
impl UnwindSafe for FatBinary
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more