#[repr(C)]pub struct Symbol {
pub name: u32,
pub info: u8,
pub section_table_index: u16,
pub value: u64,
pub size: u64,
/* private fields */
}
Fields§
§name: u32
The offset into the string table, in bytes, to the symbol name. If this is 0
, the symbol
doesn’t have a name.
info: u8
§section_table_index: u16
§value: u64
§size: u64
Implementations§
Source§impl Symbol
impl Symbol
pub fn binding(&self) -> SymbolBinding
pub fn symbol_type(&self) -> SymbolType
pub fn name<'a>(&self, elf: &'a Elf<'_>) -> Option<&'a str>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Symbol
impl RefUnwindSafe for Symbol
impl Send for Symbol
impl Sync 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