pub struct Symbol {
pub name: String,
pub address: u64,
pub size: Option<u64>,
pub is_external: bool,
pub library: Option<String>,
}Expand description
A named function symbol, as returned by BinaryFormat::symbols.
Fields§
§name: String§address: u64Link-time virtual address of the function’s first byte.
size: Option<u64>The function’s size in bytes, when the container records one (ELF
st_size, a PE exception-directory entry). None when it does not,
or records zero.
is_external: boolWhether this is an import stub (PLT entry, IAT thunk) rather than a function defined in the image.
library: Option<String>For an import stub, the library it resolves to, when known.
Trait Implementations§
impl Eq for Symbol
impl StructuralPartialEq for Symbol
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync for Symbol
impl Unpin for Symbol
impl UnsafeUnpin 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