pub struct Symbol { /* private fields */ }
Implementations§
source§impl Symbol
impl Symbol
sourcepub fn builder(ty: SymbolType, raw_name: &str, addr: u64) -> SymbolBuilder
pub fn builder(ty: SymbolType, raw_name: &str, addr: u64) -> SymbolBuilder
To create a new symbol, you need to create a symbol builder, customize that symbol, then add SymbolBuilder::create
it into a Ref<Symbol>
:
Symbol::builder(SymbolType::Data, "hello", 0x1337)
.short_name("hello")
.full_name("hello")
.create();
pub fn sym_type(&self) -> SymbolType
pub fn binding(&self) -> Binding
pub fn full_name(&self) -> BnString
pub fn short_name(&self) -> BnString
pub fn raw_name(&self) -> BnString
pub fn address(&self) -> u64
pub fn auto_defined(&self) -> bool
pub fn imported_function_from_import_address_symbol( sym: &Symbol, addr: u64, ) -> Ref<Symbol>
Trait Implementations§
source§impl CoreArrayProvider for Symbol
impl CoreArrayProvider for Symbol
source§impl ToOwned for Symbol
impl ToOwned for Symbol
impl Eq for Symbol
impl Send for Symbol
impl Sync for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Unpin for Symbol
impl UnwindSafe for Symbol
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