pub struct WasmSymbol<'data, 'file> { /* private fields */ }
Expand description
A symbol in a WasmFile
.
Most functionality is provided by the ObjectSymbol
trait implementation.
Trait Implementations§
Source§impl<'data, 'file> Clone for WasmSymbol<'data, 'file>
impl<'data, 'file> Clone for WasmSymbol<'data, 'file>
Source§fn clone(&self) -> WasmSymbol<'data, 'file>
fn clone(&self) -> WasmSymbol<'data, 'file>
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl<'data, 'file> Debug for WasmSymbol<'data, 'file>
impl<'data, 'file> Debug for WasmSymbol<'data, 'file>
Source§impl<'data, 'file> ObjectSymbol<'data> for WasmSymbol<'data, 'file>
impl<'data, 'file> ObjectSymbol<'data> for WasmSymbol<'data, 'file>
Source§fn index(&self) -> SymbolIndex
fn index(&self) -> SymbolIndex
The index of the symbol.
Source§fn name_bytes(&self) -> Result<&'data [u8]>
fn name_bytes(&self) -> Result<&'data [u8]>
The name of the symbol.
Source§fn kind(&self) -> SymbolKind
fn kind(&self) -> SymbolKind
Return the kind of this symbol.
Source§fn section(&self) -> SymbolSection
fn section(&self) -> SymbolSection
Returns the section where the symbol is defined.
Source§fn is_undefined(&self) -> bool
fn is_undefined(&self) -> bool
Return true if the symbol is undefined.
Source§fn 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
Source§fn scope(&self) -> SymbolScope
fn scope(&self) -> SymbolScope
Returns the symbol scope.
Source§fn is_global(&self) -> bool
fn is_global(&self) -> bool
Return true if the symbol visible outside of the compilation unit. Read more
Source§fn is_local(&self) -> bool
fn is_local(&self) -> bool
Return true if the symbol is only visible within the compilation unit.
Source§fn flags(&self) -> SymbolFlags<SectionIndex, SymbolIndex>
fn flags(&self) -> SymbolFlags<SectionIndex, SymbolIndex>
Symbol flags that are specific to each file format.
Source§fn 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> Copy for WasmSymbol<'data, 'file>
Auto Trait Implementations§
impl<'data, 'file> Freeze for WasmSymbol<'data, 'file>
impl<'data, 'file> RefUnwindSafe for WasmSymbol<'data, 'file>
impl<'data, 'file> Send for WasmSymbol<'data, 'file>
impl<'data, 'file> Sync for WasmSymbol<'data, 'file>
impl<'data, 'file> Unpin for WasmSymbol<'data, 'file>
impl<'data, 'file> UnwindSafe for WasmSymbol<'data, 'file>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more