[][src]Struct goblin::mach::MultiArch

pub struct MultiArch<'a> {
    pub narches: usize,
    // some fields omitted
}

A Mach-o multi architecture (Fat) binary container

Fields

narches: usize

Methods

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

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

Lazily construct Self

Important traits for FatArchIterator<'a>
pub fn iter_arches(&self) -> FatArchIterator[src]

Iterate every fat arch header

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

Return all the architectures in this binary

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

Try to get the Mach-o binary at index

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

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

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

Trait Implementations

impl<'a, 'b> IntoIterator for &'b MultiArch<'a>[src]

type Item = Result<MachO<'a>>

The type of the elements being iterated over.

type IntoIter = MachOIterator<'a>

Which kind of iterator are we turning this into?

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

Auto Trait Implementations

impl<'a> Send for MultiArch<'a>

impl<'a> Unpin for MultiArch<'a>

impl<'a> Sync for MultiArch<'a>

impl<'a> UnwindSafe for MultiArch<'a>

impl<'a> RefUnwindSafe for MultiArch<'a>

Blanket Implementations

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.

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

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

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