Struct object::macho::FatHeader[][src]

#[repr(C)]pub struct FatHeader {
    pub magic: U32<BigEndian>,
    pub nfat_arch: U32<BigEndian>,
}

Fields

magic: U32<BigEndian>

FAT_MAGIC or FAT_MAGIC_64

nfat_arch: U32<BigEndian>

number of structs that follow

Implementations

impl FatHeader[src]

pub fn parse_arch32<'data>(file: &'data [u8]) -> Result<&'data [FatArch32]>[src]

Attempt to parse a 32-bit fat header.

pub fn parse_arch64<'data>(file: &'data [u8]) -> Result<&'data [FatArch64]>[src]

Attempt to parse a 64-bit fat header.

Trait Implementations

impl Clone for FatHeader[src]

impl Copy for FatHeader[src]

impl Debug for FatHeader[src]

impl Pod for FatHeader[src]

Auto Trait Implementations

impl Send for FatHeader

impl Sync for FatHeader

impl Unpin for FatHeader

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.