[][src]Struct goblin::mach::load_command::LoadCommand

pub struct LoadCommand {
    pub offset: usize,
    pub command: CommandVariant,
}

A tagged LoadCommand union

Fields

offset: usize

The offset this load command occurs at

command: CommandVariant

Which load command this is inside a variant

Methods

impl LoadCommand[src]

pub fn parse(bytes: &[u8], offset: &mut usize, le: Endian) -> Result<Self>[src]

Parse a load command from bytes at offset with the le endianness

Trait Implementations

impl Debug for LoadCommand[src]

Auto Trait Implementations

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]