Skip to main content

mach_header

Struct mach_header 

Source
#[repr(C)]
pub struct mach_header { 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, }
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

Fieldsยง

ยงmagic: u32
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

ยงcputype: cpu_type_t
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

ยงcpusubtype: cpu_subtype_t
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

ยงfiletype: u32
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

ยงncmds: u32
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

ยงsizeofcmds: u32
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

ยงflags: u32
๐Ÿ‘ŽDeprecated since 0.2.55:

Use the mach2 crate instead

Trait Implementationsยง

Sourceยง

impl Clone for mach_header

Sourceยง

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable)ยง

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Sourceยง

impl Copy for mach_header

Sourceยง

impl Debug for mach_header

Sourceยง

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Sourceยง

impl Default for mach_header

Sourceยง

fn default() -> Self

Returns the โ€œdefault valueโ€ for a type. Read more
Sourceยง

impl Eq for mach_header

Sourceยง

impl Hash for mach_header

Sourceยง

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0ยง

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
Sourceยง

impl PartialEq for mach_header

Sourceยง

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable)ยง

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Sourceยง

impl StructuralPartialEq for mach_header

Auto Trait Implementationsยง

ยง

impl Freeze for mach_header

ยง

impl RefUnwindSafe for mach_header

ยง

impl Send for mach_header

ยง

impl Sync for mach_header

ยง

impl Unpin for mach_header

ยง

impl UnsafeUnpin for mach_header

ยง

impl UnwindSafe for mach_header

Blanket Implementationsยง

ยง

impl<T> Any for T
where T: 'static + ?Sized,

ยง

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
ยง

impl<T> Borrow<T> for T
where T: ?Sized,

ยง

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
ยง

impl<T> BorrowMut<T> for T
where T: ?Sized,

ยง

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
ยง

impl<T> CloneToUninit for T
where T: Clone,

ยง

unsafe fn clone_to_uninit(&self, dest: *mut u8)

๐Ÿ”ฌThis is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
ยง

impl<T> From<T> for T

ยง

fn from(t: T) -> T

Returns the argument unchanged.

ยง

impl<T, U> Into<U> for T
where U: From<T>,

ยง

fn into(self) -> U

Calls U::from(self).

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

ยง

impl<T, U> TryFrom<U> for T
where U: Into<T>,

ยง

type Error = !

The type returned in the event of a conversion error.
ยง

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
ยง

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

ยง

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
ยง

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.