pub struct MachoHeader { /* private fields */ }Expand description
The MachoHeader type.
Implementations§
Source§impl MachoHeader
impl MachoHeader
Sourcepub const fn magic(&self) -> MagicNumber
pub const fn magic(&self) -> MagicNumber
Parsed Mach-O magic and byte-order encoding.
Sourcepub const fn cpu_subtype(&self) -> CpuSubtype
pub const fn cpu_subtype(&self) -> CpuSubtype
Declared CPU subtype.
Sourcepub const fn arch_spec(&self) -> ArchSpec
pub const fn arch_spec(&self) -> ArchSpec
Qualified architecture identity for this Mach-O slice.
Sourcepub const fn load_command_count(&self) -> u32
pub const fn load_command_count(&self) -> u32
Number of validated load commands.
Sourcepub const fn load_commands_size(&self) -> u32
pub const fn load_commands_size(&self) -> u32
Declared load-command byte size.
Sourcepub const fn flags(&self) -> MachoHeaderFlags
pub const fn flags(&self) -> MachoHeaderFlags
Validated header flags.
Trait Implementations§
Source§impl Clone for MachoHeader
impl Clone for MachoHeader
Source§fn clone(&self) -> MachoHeader
fn clone(&self) -> MachoHeader
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for MachoHeader
impl RefUnwindSafe for MachoHeader
impl Send for MachoHeader
impl Sync for MachoHeader
impl Unpin for MachoHeader
impl UnsafeUnpin for MachoHeader
impl UnwindSafe for MachoHeader
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