pub struct Symbol<'data> {
pub name: &'data str,
pub sym_type: SymbolType,
pub external: bool,
pub private_external: bool,
pub section_index: u8,
pub desc: u16,
pub value: u64,
pub index: usize,
}Expand description
The Symbol type.
Fields§
§name: &'data strThe name field.
sym_type: SymbolTypeThe sym_type field.
external: boolThe external field.
private_external: boolThe private_external field.
section_index: u8The section_index field.
desc: u16The desc field.
value: u64The value field.
index: usizeOriginal index in the symbol table.
Implementations§
Source§impl Symbol<'_>
impl Symbol<'_>
Sourcepub fn is_defined(&self) -> bool
pub fn is_defined(&self) -> bool
Performs is_defined.
Sourcepub fn is_undefined(&self) -> bool
pub fn is_undefined(&self) -> bool
Performs is_undefined.
Sourcepub fn is_weak_def(&self) -> bool
pub fn is_weak_def(&self) -> bool
Performs is_weak_def.
Sourcepub fn is_weak_ref(&self) -> bool
pub fn is_weak_ref(&self) -> bool
Performs is_weak_ref.
Sourcepub fn is_no_dead_strip(&self) -> bool
pub fn is_no_dead_strip(&self) -> bool
Performs is_no_dead_strip.
Sourcepub fn is_alt_entry(&self) -> bool
pub fn is_alt_entry(&self) -> bool
Performs is_alt_entry.
Sourcepub fn library_ordinal(&self) -> u8
pub fn library_ordinal(&self) -> u8
Extract the library ordinal from bits 8-15 of n_desc.
Trait Implementations§
Auto Trait Implementations§
impl<'data> Freeze for Symbol<'data>
impl<'data> RefUnwindSafe for Symbol<'data>
impl<'data> Send for Symbol<'data>
impl<'data> Sync for Symbol<'data>
impl<'data> Unpin for Symbol<'data>
impl<'data> UnsafeUnpin for Symbol<'data>
impl<'data> UnwindSafe for Symbol<'data>
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