[−][src]Struct symbolic_debuginfo::Symbol
A symbol from a symbol table.
Fields
name: Option<Cow<'data, str>>
The name of the symbol.
This name is generally mangled. It can be demangled by constructing a Name
instance and
calling demangle on it. Certain object files might only store demangled symbol names.
address: u64
The relative address of this symbol.
size: u64
The size of this symbol, if known.
When loading symbols from an object file, the size will generally not be known. Instead,
construct a SymbolMap
from the object, which also fills in sizes.
Methods
impl<'data> Symbol<'data>
[src]
pub fn name(&self) -> Option<&str>
[src]
Returns the name of this symbol as string.
pub fn contains(&self, address: u64) -> bool
[src]
Determines whether the given address is covered by this symbol.
If the symbol size has not been computed, the address is assumed to be covered if it is
greated than the symbol address. Otherwise, the address must be in the half-open interval
[address, address + size)
.
Trait Implementations
impl<'data> PartialEq<Symbol<'data>> for Symbol<'data>
[src]
impl<'data> Default for Symbol<'data>
[src]
impl<'data> Clone for Symbol<'data>
[src]
fn clone(&self) -> Symbol<'data>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl<'data> Eq for Symbol<'data>
[src]
impl<'d> Debug for Symbol<'d>
[src]
impl<'d> FromIterator<Symbol<'d>> for SymbolMap<'d>
[src]
fn from_iter<I>(iter: I) -> Self where
I: IntoIterator<Item = Symbol<'d>>,
[src]
I: IntoIterator<Item = Symbol<'d>>,
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.