Struct object::read::macho::SymbolTable[][src]

pub struct SymbolTable<'data, Mach: MachHeader> { /* fields omitted */ }
Expand description

A table of symbol entries in a Mach-O file.

Also includes the string table used for the symbol names.

Implementations

impl<'data, Mach: MachHeader> SymbolTable<'data, Mach>[src]

pub fn strings(&self) -> StringTable<'data>[src]

Return the string table used for the symbol names.

pub fn iter(&self) -> Iter<'data, Mach::Nlist>[src]

Iterate over the symbols.

pub fn is_empty(&self) -> bool[src]

Return true if the symbol table is empty.

pub fn len(&self) -> usize[src]

The number of symbols.

pub fn symbol(&self, index: usize) -> Result<&'data Mach::Nlist>[src]

Return the symbol at the given index.

pub fn map<Entry: SymbolMapEntry, F: Fn(&'data Mach::Nlist) -> Option<Entry>>(
    &self,
    f: F
) -> SymbolMap<Entry>
[src]

Construct a map from addresses to a user-defined map entry.

pub fn object_map(&self, endian: Mach::Endian) -> ObjectMap<'data>[src]

Construct a map from addresses to symbol names and object file names.

Trait Implementations

impl<'data, Mach: Clone + MachHeader> Clone for SymbolTable<'data, Mach> where
    Mach::Nlist: Clone
[src]

fn clone(&self) -> SymbolTable<'data, Mach>[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl<'data, Mach: Debug + MachHeader> Debug for SymbolTable<'data, Mach> where
    Mach::Nlist: Debug
[src]

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

Formats the value using the given formatter. Read more

impl<'data, Mach: MachHeader> Default for SymbolTable<'data, Mach>[src]

fn default() -> Self[src]

Returns the “default value” for a type. Read more

impl<'data, Mach: Copy + MachHeader> Copy for SymbolTable<'data, Mach> where
    Mach::Nlist: Copy
[src]

Auto Trait Implementations

impl<'data, Mach> RefUnwindSafe for SymbolTable<'data, Mach> where
    <Mach as MachHeader>::Nlist: RefUnwindSafe

impl<'data, Mach> Send for SymbolTable<'data, Mach> where
    <Mach as MachHeader>::Nlist: Sync

impl<'data, Mach> Sync for SymbolTable<'data, Mach> where
    <Mach as MachHeader>::Nlist: Sync

impl<'data, Mach> Unpin for SymbolTable<'data, Mach>

impl<'data, Mach> UnwindSafe for SymbolTable<'data, Mach> where
    <Mach as MachHeader>::Nlist: RefUnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

impl<T> From<T> for T[src]

pub fn from(t: T) -> T[src]

Performs the conversion.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

pub fn into(self) -> U[src]

Performs the conversion.

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

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

pub fn clone_into(&self, target: &mut T)[src]

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

recently added

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

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

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

Performs the conversion.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

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

Performs the conversion.