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: u32mach magic number identifier
cputype: cpu_type_tcpu specifier
cpusubtype: cpu_subtype_tmachine specifier
filetype: u32type of file
ncmds: u32number of load commands
sizeofcmds: u32the size of all the load commands
flags: u32flags
Implementations§
Trait Implementations§
Source§impl Clone for MachHeader
impl Clone for MachHeader
Source§fn clone(&self) -> MachHeader
fn clone(&self) -> MachHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MachHeader
impl Debug for MachHeader
Source§impl Default for MachHeader
impl Default for MachHeader
Source§fn default() -> MachHeader
fn default() -> MachHeader
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for MachHeader
impl RefUnwindSafe for MachHeader
impl Send for MachHeader
impl Sync for MachHeader
impl Unpin for MachHeader
impl UnwindSafe for MachHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more