Trait object::read::ObjectSymbol [−][src]
pub trait ObjectSymbol<'data>: Sealed {}Show methods
fn index(&self) -> SymbolIndex; fn name(&self) -> Result<&'data str>; fn address(&self) -> u64; fn size(&self) -> u64; fn kind(&self) -> SymbolKind; fn section(&self) -> SymbolSection; fn is_undefined(&self) -> bool; fn is_definition(&self) -> bool; fn is_common(&self) -> bool; fn is_weak(&self) -> bool; fn scope(&self) -> SymbolScope; fn is_global(&self) -> bool; fn is_local(&self) -> bool; fn flags(&self) -> SymbolFlags<SectionIndex>; fn section_index(&self) -> Option<SectionIndex> { ... }
Expand description
A symbol table entry.
Required methods
fn index(&self) -> SymbolIndex
[src]
fn index(&self) -> SymbolIndex
[src]The index of the symbol.
fn kind(&self) -> SymbolKind
[src]
fn kind(&self) -> SymbolKind
[src]Return the kind of this symbol.
fn section(&self) -> SymbolSection
[src]
fn section(&self) -> SymbolSection
[src]Returns the section where the symbol is defined.
fn is_undefined(&self) -> bool
[src]
fn is_undefined(&self) -> bool
[src]Return true if the symbol is undefined.
fn is_definition(&self) -> bool
[src]
fn is_definition(&self) -> bool
[src]Return true if the symbol is a definition of a function or data object that has a known address.
Return true if the symbol is common data.
Note: does not check for SymbolSection::Section
with SectionKind::Common
.
fn scope(&self) -> SymbolScope
[src]
fn scope(&self) -> SymbolScope
[src]Returns the symbol scope.
Return true if the symbol visible outside of the compilation unit.
This treats SymbolScope::Unknown
as global.
Return true if the symbol is only visible within the compilation unit.
fn flags(&self) -> SymbolFlags<SectionIndex>
[src]
fn flags(&self) -> SymbolFlags<SectionIndex>
[src]Symbol flags that are specific to each file format.
Provided methods
fn section_index(&self) -> Option<SectionIndex>
[src]
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.
Implementors
impl<'data, 'file, Mach, R> ObjectSymbol<'data> for MachOSymbol<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
[src]
impl<'data, 'file, Mach, R> ObjectSymbol<'data> for MachOSymbol<'data, 'file, Mach, R> where
Mach: MachHeader,
R: ReadRef<'data>,
[src]