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)
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