pub enum SymbolInfo<'a> {
Func {
flags: SymbolFlags,
index: u32,
name: Option<&'a str>,
},
Data {
flags: SymbolFlags,
name: &'a str,
symbol: Option<DefinedDataSymbol>,
},
Global {
flags: SymbolFlags,
index: u32,
name: Option<&'a str>,
},
Section {
flags: SymbolFlags,
section: u32,
},
Event {
flags: SymbolFlags,
index: u32,
name: Option<&'a str>,
},
Table {
flags: SymbolFlags,
index: u32,
name: Option<&'a str>,
},
}
Expand description
Represents extra information about symbols in the linking custom section.
The symbol flags correspond to those described in
https://github.com/WebAssembly/tool-conventions/blob/main/Linking.md
with the WASM_SYM_*
prefix.
Variants§
Func
The symbol is a function.
Fields
§
flags: SymbolFlags
The flags for the symbol.
Data
The symbol is a data symbol.
Fields
§
flags: SymbolFlags
The flags for the symbol.
§
symbol: Option<DefinedDataSymbol>
The definition of the data symbol, if it is defined.
Global
The symbol is a global.
Fields
§
flags: SymbolFlags
The flags for the symbol.
Section
The symbol is a section.
Fields
§
flags: SymbolFlags
The flags for the symbol.
Event
The symbol is an event.
Fields
§
flags: SymbolFlags
The flags for the symbol.
Table
The symbol is a table.
Trait Implementations§
source§impl<'a> Clone for SymbolInfo<'a>
impl<'a> Clone for SymbolInfo<'a>
source§fn clone(&self) -> SymbolInfo<'a>
fn clone(&self) -> SymbolInfo<'a>
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<'a> Debug for SymbolInfo<'a>
impl<'a> Debug for SymbolInfo<'a>
source§impl<'a> FromReader<'a> for SymbolInfo<'a>
impl<'a> FromReader<'a> for SymbolInfo<'a>
source§fn from_reader(
reader: &mut BinaryReader<'a>,
) -> Result<SymbolInfo<'a>, BinaryReaderError>
fn from_reader( reader: &mut BinaryReader<'a>, ) -> Result<SymbolInfo<'a>, BinaryReaderError>
Attempts to read
Self
from the provided binary reader, returning an
error if it is unable to do so.impl<'a> Copy for SymbolInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for SymbolInfo<'a>
impl<'a> RefUnwindSafe for SymbolInfo<'a>
impl<'a> Send for SymbolInfo<'a>
impl<'a> Sync for SymbolInfo<'a>
impl<'a> Unpin for SymbolInfo<'a>
impl<'a> UnwindSafe for SymbolInfo<'a>
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more