Struct mach_object::MachHeader [−][src]
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]
impl MachHeader
Trait Implementations
impl Display for MachHeader
[src]
impl Display for MachHeader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Debug for MachHeader
[src]
impl Debug for MachHeader
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Default for MachHeader
[src]
impl Default for MachHeader
fn default() -> MachHeader
[src]
fn default() -> MachHeader
Returns the "default value" for a type. Read more
impl Clone for MachHeader
[src]
impl Clone for MachHeader
fn clone(&self) -> MachHeader
[src]
fn clone(&self) -> MachHeader
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
Auto Trait Implementations
impl Send for MachHeader
impl Send for MachHeader
impl Sync for MachHeader
impl Sync for MachHeader