[][src]Struct mach_object::MachHeader

pub struct MachHeader {
    pub magic: u32,
    pub cputype: cpu_type_t,
    pub cpusubtype: cpu_subtype_t,
    pub filetype: u32,
    pub ncmds: u32,
    pub sizeofcmds: u32,
    pub flags: u32,
}

The mach header appears at the very beginning of the object file

Fields

magic: u32

mach magic number identifier

cputype: cpu_type_t

cpu specifier

cpusubtype: cpu_subtype_t

machine specifier

filetype: u32

type of file

ncmds: u32

number of load commands

sizeofcmds: u32

the size of all the load commands

flags: u32

flags

Methods

impl MachHeader[src]

pub fn is_64bit(&self) -> bool[src]

pub fn is_bigend(&self) -> bool[src]

Trait Implementations

impl Clone for MachHeader[src]

impl Default for MachHeader[src]

impl Display for MachHeader[src]

impl Debug for MachHeader[src]

Auto Trait Implementations

Blanket Implementations

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> ToString for T where
    T: Display + ?Sized
[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> Borrow<T> for T where
    T: ?Sized
[src]

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

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