Struct mach_object::MachHeader
source · [−]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,
}
Expand description
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
Implementations
Trait Implementations
sourceimpl Clone for MachHeader
impl Clone for MachHeader
sourcefn clone(&self) -> MachHeader
fn clone(&self) -> MachHeader
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for MachHeader
impl Debug for MachHeader
sourceimpl Default for MachHeader
impl Default for MachHeader
sourcefn default() -> MachHeader
fn default() -> MachHeader
Returns the “default value” for a type. Read more
Auto Trait Implementations
impl RefUnwindSafe for MachHeader
impl Send for MachHeader
impl Sync for MachHeader
impl Unpin for MachHeader
impl UnwindSafe for MachHeader
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more