pub struct SymbolTable<'data, Mach: MachHeader> { /* private fields */ }Expand description
A table of symbol entries in a Mach-O file.
Also includes the string table used for the symbol names.
Implementations
sourceimpl<'data, Mach: MachHeader> SymbolTable<'data, Mach>
 
impl<'data, Mach: MachHeader> SymbolTable<'data, Mach>
sourcepub fn strings(&self) -> StringTable<'data>
 
pub fn strings(&self) -> StringTable<'data>
Return the string table used for the symbol names.
sourcepub fn symbol(&self, index: usize) -> Result<&'data Mach::Nlist>
 
pub fn symbol(&self, index: usize) -> Result<&'data Mach::Nlist>
Return the symbol at the given index.
sourcepub fn map<Entry: SymbolMapEntry, F: Fn(&'data Mach::Nlist) -> Option<Entry>>(
    &self, 
    f: F
) -> SymbolMap<Entry>
 
pub fn map<Entry: SymbolMapEntry, F: Fn(&'data Mach::Nlist) -> Option<Entry>>(
    &self, 
    f: F
) -> SymbolMap<Entry>
Construct a map from addresses to a user-defined map entry.
sourcepub fn object_map(&self, endian: Mach::Endian) -> ObjectMap<'data>
 
pub fn object_map(&self, endian: Mach::Endian) -> ObjectMap<'data>
Construct a map from addresses to symbol names and object file names.
Trait Implementations
sourceimpl<'data, Mach: Clone + MachHeader> Clone for SymbolTable<'data, Mach> where
    Mach::Nlist: Clone, 
 
impl<'data, Mach: Clone + MachHeader> Clone for SymbolTable<'data, Mach> where
    Mach::Nlist: Clone, 
sourcefn clone(&self) -> SymbolTable<'data, Mach>
 
fn clone(&self) -> SymbolTable<'data, Mach>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
 
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source. Read more
sourceimpl<'data, Mach: Debug + MachHeader> Debug for SymbolTable<'data, Mach> where
    Mach::Nlist: Debug, 
 
impl<'data, Mach: Debug + MachHeader> Debug for SymbolTable<'data, Mach> where
    Mach::Nlist: Debug, 
sourceimpl<'data, Mach: MachHeader> Default for SymbolTable<'data, Mach>
 
impl<'data, Mach: MachHeader> Default for SymbolTable<'data, Mach>
impl<'data, Mach: Copy + MachHeader> Copy for SymbolTable<'data, Mach> where
    Mach::Nlist: Copy, 
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
sourceimpl<T> BorrowMut<T> for T where
    T: ?Sized, 
 
impl<T> BorrowMut<T> for T where
    T: ?Sized, 
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
 
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
    T: Clone, 
 
impl<T> ToOwned for T where
    T: Clone, 
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
 
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
 
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into)Uses borrowed data to replace owned data, usually by cloning. Read more