pub struct ProgramSymbol {
pub name: String,
pub value: u64,
pub size: u64,
pub section_index: u16,
}Expand description
Retains symbol metadata for entry selection and debugger address display.
Fields§
§name: StringOwns the symbol name from its ELF string table.
value: u64Gives the symbol guest address.
size: u64Gives the symbol extent, or zero when ELF does not supply one.
section_index: u16Gives the defining ELF section index; zero means undefined.
Implementations§
Source§impl ProgramSymbol
impl ProgramSymbol
Sourcepub fn is_defined(&self) -> bool
pub fn is_defined(&self) -> bool
Rejects undefined table entries when the debugger resolves an address.
Trait Implementations§
Source§impl Clone for ProgramSymbol
impl Clone for ProgramSymbol
Source§fn clone(&self) -> ProgramSymbol
fn clone(&self) -> ProgramSymbol
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for ProgramSymbol
impl RefUnwindSafe for ProgramSymbol
impl Send for ProgramSymbol
impl Sync for ProgramSymbol
impl Unpin for ProgramSymbol
impl UnsafeUnpin for ProgramSymbol
impl UnwindSafe for ProgramSymbol
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