pub struct ElfSymbol<'data, 'file, Elf, R = &'data [u8]> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>, { /* private fields */ }
Expand description
A symbol of an ElfFile
.
Trait Implementations
sourceimpl<'data, 'file, Elf: Clone, R: Clone> Clone for ElfSymbol<'data, 'file, Elf, R> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>,
Elf::Endian: Clone,
Elf::Sym: Clone,
impl<'data, 'file, Elf: Clone, R: Clone> Clone for ElfSymbol<'data, 'file, Elf, R> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>,
Elf::Endian: Clone,
Elf::Sym: Clone,
sourceimpl<'data, 'file, Elf: Debug, R: Debug> Debug for ElfSymbol<'data, 'file, Elf, R> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>,
Elf::Endian: Debug,
Elf::Sym: Debug,
impl<'data, 'file, Elf: Debug, R: Debug> Debug for ElfSymbol<'data, 'file, Elf, R> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>,
Elf::Endian: Debug,
Elf::Sym: Debug,
sourceimpl<'data, 'file, Elf: FileHeader, R: ReadRef<'data>> ObjectSymbol<'data> for ElfSymbol<'data, 'file, Elf, R>
impl<'data, 'file, Elf: FileHeader, R: ReadRef<'data>> ObjectSymbol<'data> for ElfSymbol<'data, 'file, Elf, R>
sourcefn index(&self) -> SymbolIndex
fn index(&self) -> SymbolIndex
The index of the symbol.
sourcefn kind(&self) -> SymbolKind
fn kind(&self) -> SymbolKind
Return the kind of this symbol.
sourcefn section(&self) -> SymbolSection
fn section(&self) -> SymbolSection
Returns the section where the symbol is defined.
sourcefn is_undefined(&self) -> bool
fn is_undefined(&self) -> bool
Return true if the symbol is undefined.
sourcefn is_definition(&self) -> bool
fn is_definition(&self) -> bool
Return true if the symbol is a definition of a function or data object that has a known address. Read more
sourcefn scope(&self) -> SymbolScope
fn scope(&self) -> SymbolScope
Returns the symbol scope.
sourcefn is_global(&self) -> bool
fn is_global(&self) -> bool
Return true if the symbol visible outside of the compilation unit. Read more
sourcefn is_local(&self) -> bool
fn is_local(&self) -> bool
Return true if the symbol is only visible within the compilation unit.
sourcefn flags(&self) -> SymbolFlags<SectionIndex>
fn flags(&self) -> SymbolFlags<SectionIndex>
Symbol flags that are specific to each file format.
sourcefn section_index(&self) -> Option<SectionIndex>
fn section_index(&self) -> Option<SectionIndex>
Returns the section index for the section containing this symbol. Read more
impl<'data, 'file, Elf: Copy, R: Copy> Copy for ElfSymbol<'data, 'file, Elf, R> where
'data: 'file,
Elf: FileHeader,
R: ReadRef<'data>,
Elf::Endian: Copy,
Elf::Sym: Copy,
Auto Trait Implementations
impl<'data, 'file, Elf, R> RefUnwindSafe for ElfSymbol<'data, 'file, Elf, R> where
R: RefUnwindSafe,
<Elf as FileHeader>::Endian: RefUnwindSafe,
<Elf as FileHeader>::Sym: RefUnwindSafe,
impl<'data, 'file, Elf, R> Send for ElfSymbol<'data, 'file, Elf, R> where
R: Sync,
<Elf as FileHeader>::Endian: Send,
<Elf as FileHeader>::Sym: Sync,
impl<'data, 'file, Elf, R> Sync for ElfSymbol<'data, 'file, Elf, R> where
R: Sync,
<Elf as FileHeader>::Endian: Sync,
<Elf as FileHeader>::Sym: Sync,
impl<'data, 'file, Elf, R> Unpin for ElfSymbol<'data, 'file, Elf, R> where
<Elf as FileHeader>::Endian: Unpin,
'data: 'file,
impl<'data, 'file, Elf, R> UnwindSafe for ElfSymbol<'data, 'file, Elf, R> where
R: RefUnwindSafe,
<Elf as FileHeader>::Endian: UnwindSafe,
<Elf as FileHeader>::Sym: RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more