pub enum WasmExportType {
Function {
function_index: u32,
},
Table {
table_index: u32,
},
Memory {
memory_index: u32,
},
Global {
global_index: u32,
},
}Expand description
WASM 导出类型
Variants§
Implementations§
Source§impl WasmExportType
impl WasmExportType
pub fn function_index(&self) -> Option<u32>
Trait Implementations§
Source§impl Clone for WasmExportType
impl Clone for WasmExportType
Source§fn clone(&self) -> WasmExportType
fn clone(&self) -> WasmExportType
Returns a duplicate 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 WasmExportType
impl Debug for WasmExportType
impl Copy for WasmExportType
Auto Trait Implementations§
impl Freeze for WasmExportType
impl RefUnwindSafe for WasmExportType
impl Send for WasmExportType
impl Sync for WasmExportType
impl Unpin for WasmExportType
impl UnsafeUnpin for WasmExportType
impl UnwindSafe for WasmExportType
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