#[repr(C)]
pub struct MachHeader64<E: Endian> { pub magic: U32<BigEndian>, pub cputype: U32<E>, pub cpusubtype: U32<E>, pub filetype: U32<E>, pub ncmds: U32<E>, pub sizeofcmds: U32<E>, pub flags: U32<E>, pub reserved: U32<E>, }
Expand description

The 64-bit mach header.

Appears at the very beginning of object files for 64-bit architectures.

Fields

magic: U32<BigEndian>

mach magic number identifier

cputype: U32<E>

cpu specifier

cpusubtype: U32<E>

machine specifier

filetype: U32<E>

type of file

ncmds: U32<E>

number of load commands

sizeofcmds: U32<E>

the size of all the load commands

flags: U32<E>

flags

reserved: U32<E>

reserved

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Return true if this type is a 64-bit header. Read more

Return true if the magic field signifies big-endian.

Return true if the magic field signifies little-endian.

Read the file header. Read more

Return the UUID from the LC_UUID load command, if one is present.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.