[][src]Struct fat_macho::FatReader

pub struct FatReader<'a> { /* fields omitted */ }

Mach-O fat binary reader

Implementations

impl<'a> FatReader<'a>[src]

pub fn new(buffer: &'a [u8]) -> Result<Self, Error>[src]

Parse a Mach-O FAT binary from a buffer

pub fn extract(&self, arch_name: &str) -> Option<&'a [u8]>[src]

Extract thin binary by arch name

Methods from Deref<Target = MultiArch<'a>>

pub fn iter_arches(&self) -> FatArchIterator<'_>[src]

Iterate every fat arch header

pub fn arches(&self) -> Result<Vec<FatArch, Global>, Error>[src]

Return all the architectures in this binary

pub fn get(&self, index: usize) -> Result<MachO<'a>, Error>[src]

Try to get the Mach-o binary at index

pub fn find<F>(&'a self, f: F) -> Option<Result<MachO<'a>, Error>> where
    F: Fn(Result<FatArch, Error>) -> bool
[src]

pub fn find_cputype(&self, cputype: u32) -> Result<Option<FatArch>, Error>[src]

Try and find the cputype in Self, if there is one

Trait Implementations

impl<'a> Debug for FatReader<'a>[src]

impl<'a> Deref for FatReader<'a>[src]

type Target = MultiArch<'a>

The resulting type after dereferencing.

impl<'a> DerefMut for FatReader<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for FatReader<'a>[src]

impl<'a> Send for FatReader<'a>[src]

impl<'a> Sync for FatReader<'a>[src]

impl<'a> Unpin for FatReader<'a>[src]

impl<'a> UnwindSafe for FatReader<'a>[src]

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.