Skip to main content

MachOSummary

Struct MachOSummary 

Source
pub struct MachOSummary {
Show 16 fields pub path: String, pub fat: bool, pub file_slice_offset: u64, pub cpu: String, pub file_type: String, pub file_type_raw: u32, pub flags: u32, pub ncmds: u32, pub sizeofcmds: u32, pub entry: Option<u64>, pub old_style_entry: bool, pub uuid: Option<String>, pub minos: Option<String>, pub platform: Option<String>, pub is_64: bool, pub little_endian: bool,
}
Expand description

High-level header summary used by kh inspect.

Fields§

§path: String

Path that was opened (or synthetic label).

§fat: bool

True when the on-disk container was a fat binary.

§file_slice_offset: u64

Byte offset of the arm64 thin Mach-O within the on-disk container.

Zero for thin files. Segment fileoff values are relative to the thin header; map requests add this offset when reading the container path.

§cpu: String

Architecture name (e.g. arm64).

§file_type: String

File type string (e.g. EXECUTE).

§file_type_raw: u32

Raw filetype constant.

§flags: u32

Header flags.

§ncmds: u32

Number of load commands.

§sizeofcmds: u32

Size of all load commands in bytes.

§entry: Option<u64>

Entry virtual address if known (0 means unknown / not present).

§old_style_entry: bool

True when entry came from LC_UNIXTHREAD rather than LC_MAIN.

§uuid: Option<String>

UUID if present (LC_UUID).

§minos: Option<String>

Minimum OS version from LC_BUILD_VERSION / LC_VERSION_MIN_* if any.

§platform: Option<String>

Platform from LC_BUILD_VERSION if any.

§is_64: bool

Whether this is a 64-bit Mach-O.

§little_endian: bool

Little-endian image.

Trait Implementations§

Source§

impl Clone for MachOSummary

Source§

fn clone(&self) -> MachOSummary

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

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

Performs copy-assignment from source. Read more
Source§

impl Debug for MachOSummary

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Eq for MachOSummary

Source§

impl PartialEq for MachOSummary

Source§

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

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

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

Inequality operator !=. Read more
Source§

impl StructuralPartialEq for MachOSummary

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

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

Source§

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
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

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

Source§

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

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

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

fn clone_into(&self, target: &mut T)

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

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more