pub enum ExportDesc {
FuncIdx(usize),
TableIdx(usize),
MemIdx(usize),
GlobalIdx(usize),
}
Variants§
Implementations§
Source§impl ExportDesc
impl ExportDesc
Sourcepub fn extern_type(&self, validation_info: &ValidationInfo<'_>) -> ExternType
pub fn extern_type(&self, validation_info: &ValidationInfo<'_>) -> ExternType
returns the external type of self
according to typing relation,
taking validation_info
as validation context C
Note: This method may panic if self
does not come from the given ValidationInfo
.
https://webassembly.github.io/spec/core/valid/modules.html#exports
pub fn get_function_idx(&self) -> Option<usize>
pub fn get_global_idx(&self) -> Option<usize>
pub fn get_memory_idx(&self) -> Option<usize>
pub fn get_table_idx(&self) -> Option<usize>
Trait Implementations§
Source§impl Clone for ExportDesc
impl Clone for ExportDesc
Source§fn clone(&self) -> ExportDesc
fn clone(&self) -> ExportDesc
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 Debug for ExportDesc
impl Debug for ExportDesc
Source§impl WasmReadable for ExportDesc
impl WasmReadable for ExportDesc
Source§fn read(wasm: &mut WasmReader<'_>) -> Result<Self, ValidationError>
fn read(wasm: &mut WasmReader<'_>) -> Result<Self, ValidationError>
Auto Trait Implementations§
impl Freeze for ExportDesc
impl RefUnwindSafe for ExportDesc
impl Send for ExportDesc
impl Sync for ExportDesc
impl Unpin for ExportDesc
impl UnwindSafe for ExportDesc
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