[][src]Struct object::read::Symbol

pub struct Symbol<'data> { /* fields omitted */ }

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.