Skip to main content

LoadCommand

Enum LoadCommand 

Source
pub enum LoadCommand {
Show 54 variants Segment32(SegmentCommandData), Segment64(SegmentCommandData), Symtab(SymtabData), Dysymtab(DysymtabData), DyldInfo(DyldInfoData), DyldInfoOnly(DyldInfoData), DyldExportsTrie(LinkeditData), DyldChainedFixups(LinkeditData), Main(EntryPointData), Uuid(UuidData), BuildVersion(BuildVersionData), SourceVersion(SourceVersionData), VersionMinMacOS(VersionMinData), VersionMinIOS(VersionMinData), VersionMinTvOS(VersionMinData), VersionMinWatchOS(VersionMinData), IdDylib(DylibData), LoadDylib(DylibData), LoadWeakDylib(DylibData), ReexportDylib(DylibData), LazyLoadDylib(DylibData), LoadUpwardDylib(DylibData), Rpath(StringData), TargetTriple(StringData), IdDylinker(StringData), LoadDylinker(StringData), DyldEnvironment(StringData), SubFramework(StringData), SubUmbrella(StringData), SubClient(StringData), SubLibrary(StringData), CodeSignature(LinkeditData), SegmentSplitInfo(LinkeditData), FunctionStarts(LinkeditData), DataInCode(LinkeditData), DylibCodeSignDrs(LinkeditData), LinkerOptimizationHint(LinkeditData), AtomInfo(LinkeditData), FunctionVariants(LinkeditData), FunctionVariantFixups(LinkeditData), EncryptionInfo(EncryptionInfoData), EncryptionInfo64(EncryptionInfoData), LinkerOption(LinkerOptionData), Note(NoteData), FilesetEntry(FilesetEntryData), PrebindCksum(PrebindCksumData), TwolevelHints(TwolevelHintsData), Routines(RoutinesData), Routines64(RoutinesData), Thread(RawData), UnixThread(RawData), PreboundDylib(RawData), Ident(RawData), Unknown(UnknownLoadCommand),
}
Expand description

The LoadCommand type.

Variants§

§

Segment32(SegmentCommandData)

The Segment32 variant.

§

Segment64(SegmentCommandData)

The Segment64 variant.

§

Symtab(SymtabData)

The Symtab variant.

§

Dysymtab(DysymtabData)

The Dysymtab variant.

§

DyldInfo(DyldInfoData)

The DyldInfo variant.

§

DyldInfoOnly(DyldInfoData)

The DyldInfoOnly variant.

§

DyldExportsTrie(LinkeditData)

The DyldExportsTrie variant.

§

DyldChainedFixups(LinkeditData)

The DyldChainedFixups variant.

§

Main(EntryPointData)

The Main variant.

§

Uuid(UuidData)

The Uuid variant.

§

BuildVersion(BuildVersionData)

The BuildVersion variant.

§

SourceVersion(SourceVersionData)

The SourceVersion variant.

§

VersionMinMacOS(VersionMinData)

The VersionMinMacOS variant.

§

VersionMinIOS(VersionMinData)

The VersionMinIOS variant.

§

VersionMinTvOS(VersionMinData)

The VersionMinTvOS variant.

§

VersionMinWatchOS(VersionMinData)

The VersionMinWatchOS variant.

§

IdDylib(DylibData)

The IdDylib variant.

§

LoadDylib(DylibData)

The LoadDylib variant.

§

LoadWeakDylib(DylibData)

The LoadWeakDylib variant.

§

ReexportDylib(DylibData)

The ReexportDylib variant.

§

LazyLoadDylib(DylibData)

The LazyLoadDylib variant.

§

LoadUpwardDylib(DylibData)

The LoadUpwardDylib variant.

§

Rpath(StringData)

The Rpath variant.

§

TargetTriple(StringData)

The TargetTriple variant.

§

IdDylinker(StringData)

The IdDylinker variant.

§

LoadDylinker(StringData)

The LoadDylinker variant.

§

DyldEnvironment(StringData)

The DyldEnvironment variant.

§

SubFramework(StringData)

The SubFramework variant.

§

SubUmbrella(StringData)

The SubUmbrella variant.

§

SubClient(StringData)

The SubClient variant.

§

SubLibrary(StringData)

The SubLibrary variant.

§

CodeSignature(LinkeditData)

The CodeSignature variant.

§

SegmentSplitInfo(LinkeditData)

The SegmentSplitInfo variant.

§

FunctionStarts(LinkeditData)

The FunctionStarts variant.

§

DataInCode(LinkeditData)

The DataInCode variant.

§

DylibCodeSignDrs(LinkeditData)

The DylibCodeSignDrs variant.

§

LinkerOptimizationHint(LinkeditData)

The LinkerOptimizationHint variant.

§

AtomInfo(LinkeditData)

The AtomInfo variant.

§

FunctionVariants(LinkeditData)

The FunctionVariants variant.

§

FunctionVariantFixups(LinkeditData)

The FunctionVariantFixups variant.

§

EncryptionInfo(EncryptionInfoData)

The EncryptionInfo variant.

§

EncryptionInfo64(EncryptionInfoData)

The EncryptionInfo64 variant.

§

LinkerOption(LinkerOptionData)

The LinkerOption variant.

§

Note(NoteData)

The Note variant.

§

FilesetEntry(FilesetEntryData)

The FilesetEntry variant.

§

PrebindCksum(PrebindCksumData)

The PrebindCksum variant.

§

TwolevelHints(TwolevelHintsData)

The TwolevelHints variant.

§

Routines(RoutinesData)

The Routines variant.

§

Routines64(RoutinesData)

The Routines64 variant.

§

Thread(RawData)

The Thread variant.

§

UnixThread(RawData)

The UnixThread variant.

§

PreboundDylib(RawData)

The PreboundDylib variant.

§

Ident(RawData)

The Ident variant.

§

Unknown(UnknownLoadCommand)

The Unknown variant.

Implementations§

Source§

impl LoadCommand

Source

pub fn name(&self) -> &'static str

Performs name.

Source

pub fn summary(&self) -> String

Performs summary.

Source

pub fn as_uuid(&self) -> Option<&UuidData>

Performs as_uuid.

Source

pub fn as_build_version(&self) -> Option<&BuildVersionData>

Performs as_build_version.

Source

pub fn as_symtab(&self) -> Option<&SymtabData>

Performs as_symtab.

Source

pub fn as_dysymtab(&self) -> Option<&DysymtabData>

Performs as_dysymtab.

Source

pub fn as_main(&self) -> Option<&EntryPointData>

Performs as_main.

Source

pub fn as_dylib(&self) -> Option<&DylibData>

Performs as_dylib.

Source

pub fn as_rpath(&self) -> Option<&str>

Performs as_rpath.

Source

pub fn as_segment(&self) -> Option<&SegmentCommandData>

Performs as_segment.

Source

pub fn as_linkedit_data(&self) -> Option<&LinkeditData>

Performs as_linkedit_data.

Trait Implementations§

Source§

impl Clone for LoadCommand

Source§

fn clone(&self) -> LoadCommand

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 LoadCommand

Source§

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

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

impl Eq for LoadCommand

Source§

impl PartialEq for LoadCommand

Source§

fn eq(&self, other: &LoadCommand) -> 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 LoadCommand

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<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

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> Same for T

Source§

type Output = T

Should always be Self
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 = !

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

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

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.