[][src]Enum goblin::mach::Mach

pub enum Mach<'a> {
    Fat(MultiArch<'a>),
    Binary(MachO<'a>),
}

Either a collection of multiple architectures, or a single mach-o binary

Variants

Fat(MultiArch<'a>)

A "fat" multi-architecture binary container

Binary(MachO<'a>)

A regular Mach-o binary

Methods

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

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

Parse from bytes either a multi-arch binary or a regular mach-o binary

Trait Implementations

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

Auto Trait Implementations

impl<'a> Send for Mach<'a>

impl<'a> Unpin for Mach<'a>

impl<'a> Sync for Mach<'a>

impl<'a> UnwindSafe for Mach<'a>

impl<'a> RefUnwindSafe for Mach<'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]