[−][src]Struct object::Symbol
A symbol table entry.
Methods
impl<'data> Symbol<'data>
[src]
pub fn kind(&self) -> SymbolKind
[src]
Return the kind of this symbol.
pub fn section_index(&self) -> Option<SectionIndex>
[src]
Returns the section index for the section containing this symbol.
May return None
if the section is unknown or the symbol is undefined.
pub fn is_undefined(&self) -> bool
[src]
Return true if the symbol is undefined.
pub fn is_global(&self) -> bool
[src]
Return true if the symbol is global.
pub fn is_local(&self) -> bool
[src]
Return true if the symbol is local.
pub fn name(&self) -> Option<&'data str>
[src]
The name of the symbol.
pub fn address(&self) -> u64
[src]
The address of the symbol. May be zero if the address is unknown.
pub fn size(&self) -> u64
[src]
The size of the symbol. May be zero if the size is unknown.
Trait Implementations
Auto Trait Implementations
impl<'data> Unpin for Symbol<'data>
impl<'data> Sync for Symbol<'data>
impl<'data> Send for Symbol<'data>
impl<'data> RefUnwindSafe for Symbol<'data>
impl<'data> UnwindSafe for Symbol<'data>
Blanket Implementations
impl<T, U> TryFrom<U> 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, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryInto<U> 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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,