pub struct SymbolTable<'data, Mach: MachHeader, R = &'data [u8]> where
R: ReadRef<'data>, { /* 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, R: ReadRef<'data>> SymbolTable<'data, Mach, R>
impl<'data, Mach: MachHeader, R: ReadRef<'data>> SymbolTable<'data, Mach, R>
sourcepub fn strings(&self) -> StringTable<'data, R>
pub fn strings(&self) -> StringTable<'data, R>
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, R: Clone> Clone for SymbolTable<'data, Mach, R> where
R: ReadRef<'data>,
Mach::Nlist: Clone,
impl<'data, Mach: Clone + MachHeader, R: Clone> Clone for SymbolTable<'data, Mach, R> where
R: ReadRef<'data>,
Mach::Nlist: Clone,
sourcefn clone(&self) -> SymbolTable<'data, Mach, R>
fn clone(&self) -> SymbolTable<'data, Mach, R>
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, R: Debug> Debug for SymbolTable<'data, Mach, R> where
R: ReadRef<'data>,
Mach::Nlist: Debug,
impl<'data, Mach: Debug + MachHeader, R: Debug> Debug for SymbolTable<'data, Mach, R> where
R: ReadRef<'data>,
Mach::Nlist: Debug,
sourceimpl<'data, Mach: MachHeader, R: ReadRef<'data>> Default for SymbolTable<'data, Mach, R>
impl<'data, Mach: MachHeader, R: ReadRef<'data>> Default for SymbolTable<'data, Mach, R>
impl<'data, Mach: Copy + MachHeader, R: Copy> Copy for SymbolTable<'data, Mach, R> where
R: ReadRef<'data>,
Mach::Nlist: Copy,
Auto Trait Implementations
impl<'data, Mach, R> RefUnwindSafe for SymbolTable<'data, Mach, R> where
R: RefUnwindSafe,
<Mach as MachHeader>::Nlist: RefUnwindSafe,
impl<'data, Mach, R> Send for SymbolTable<'data, Mach, R> where
R: Send,
<Mach as MachHeader>::Nlist: Sync,
impl<'data, Mach, R> Sync for SymbolTable<'data, Mach, R> where
R: Sync,
<Mach as MachHeader>::Nlist: Sync,
impl<'data, Mach, R> Unpin for SymbolTable<'data, Mach, R> where
R: Unpin,
impl<'data, Mach, R> UnwindSafe for SymbolTable<'data, Mach, R> where
R: UnwindSafe,
<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