Struct object::read::macho::SymbolTable
source · 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§
source§impl<'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§
source§impl<'data, Mach: Clone + MachHeader, R> Clone for SymbolTable<'data, Mach, R>where
R: ReadRef<'data> + Clone,
Mach::Nlist: Clone,
impl<'data, Mach: Clone + MachHeader, R> Clone for SymbolTable<'data, Mach, R>where R: ReadRef<'data> + Clone, Mach::Nlist: Clone,
source§fn clone(&self) -> SymbolTable<'data, Mach, R>
fn clone(&self) -> SymbolTable<'data, Mach, R>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl<'data, Mach: Debug + MachHeader, R> Debug for SymbolTable<'data, Mach, R>where
R: ReadRef<'data> + Debug,
Mach::Nlist: Debug,
impl<'data, Mach: Debug + MachHeader, R> Debug for SymbolTable<'data, Mach, R>where R: ReadRef<'data> + Debug, Mach::Nlist: Debug,
source§impl<'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 for SymbolTable<'data, Mach, R>where R: ReadRef<'data> + Copy, 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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more