pub struct Symbol<'a> { /* private fields */ }
Expand description
Structure that represents a Symbol in a Mach-O file.
A Mach-O symbol can come from:
- The symbols command (LC_SYMTAB / SymbolCommand)
- The Dyld Export trie
- The Dyld Symbol bindings
Implementations§
§impl Symbol<'_>
impl Symbol<'_>
pub fn get_type(&self) -> u8
pub fn numberof_sections(&self) -> u8
pub fn numberof_sections(&self) -> u8
It returns the number of sections in which this symbol can be found.
If the symbol can’t be found in any section, it returns 0 (NO_SECT
)
pub fn description(&self) -> u16
pub fn description(&self) -> u16
Return information about the symbol
pub fn origin(&self) -> Origin
pub fn origin(&self) -> Origin
Return the origin of the symbol: from LC_SYMTAB
from the Dyld information, …
pub fn export_info(&self) -> Option<ExportInfo<'_>>
pub fn export_info(&self) -> Option<ExportInfo<'_>>
Export info associated with this symbol (if any)
pub fn binding_info(&self) -> Option<BindingInfo<'_>>
pub fn binding_info(&self) -> Option<BindingInfo<'_>>
Binding info associated with this symbol (if any)
pub fn library(&self) -> Option<Dylib<'_>>
pub fn library(&self) -> Option<Dylib<'_>>
Return the library in which this symbol is defined (if any)
pub fn demangled_name(&self) -> String
pub fn demangled_name(&self) -> String
Try to demangle the symbol or return an empty string if it is not possible
Trait Implementations§
Auto Trait Implementations§
impl<'a> RefUnwindSafe for Symbol<'a>
impl<'a> !Send for Symbol<'a>
impl<'a> !Sync for Symbol<'a>
impl<'a> Unpin for Symbol<'a>
impl<'a> UnwindSafe for Symbol<'a>
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