[−][src]Struct object::read::Symbol
A symbol table entry.
Implementations
impl<'data> Symbol<'data>
[src]
pub fn kind(&self) -> SymbolKind
[src]
Return the kind of this symbol.
pub fn section(&self) -> SymbolSection
[src]
Returns the section where the symbol is defined.
pub fn section_index(&self) -> Option<SectionIndex>
[src]
Returns the section index for the section containing this symbol.
May return None
if the symbol is not defined in a section.
pub fn is_undefined(&self) -> bool
[src]
Return true if the symbol is undefined.
pub fn is_weak(&self) -> bool
[src]
Return true if the symbol is weak.
pub fn is_global(&self) -> bool
[src]
Return true if the symbol visible outside of the compilation unit.
This treats SymbolScope::Unknown
as global.
pub fn is_local(&self) -> bool
[src]
Return true if the symbol is only visible within the compilation unit.
pub fn scope(&self) -> SymbolScope
[src]
Returns the symbol scope.
pub fn flags(&self) -> SymbolFlags<SectionIndex>
[src]
Symbol flags that are specific to each file format.
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
impl<'data> Clone for Symbol<'data>
[src]
fn clone(&self) -> Symbol<'data>
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<'data> Debug for Symbol<'data>
[src]
Auto Trait Implementations
impl<'data> Send for Symbol<'data>
impl<'data> Sync for Symbol<'data>
impl<'data> Unpin for Symbol<'data>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,