Struct object::macho::MachHeader32[][src]

#[repr(C)]
pub struct MachHeader32<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>, }
Expand description

The 32-bit mach header.

Appears at the very beginning of the object file for 32-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

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

Performs the conversion.

Performs the conversion.

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.