pub enum ExportDesc {
Func(FuncIdx),
Table(TableIdx),
Mem(MemIdx),
Global(GlobalIdx),
}Variants§
Implementations§
Source§impl ExportDesc
impl ExportDesc
pub fn decode_and_validate( wasm: &mut WasmDecoder<'_>, c_functions: &IdxVec<FuncIdx, TypeIdx>, c_tables: &IdxVec<TableIdx, TableType>, c_mems: &IdxVec<MemIdx, MemType>, c_globals: &IdxVec<GlobalIdx, Global>, ) -> Result<Self, ValidationError>
Sourcepub unsafe fn extern_type(&self, validation_info: &Module<'_>) -> ExternType
pub unsafe fn extern_type(&self, validation_info: &Module<'_>) -> ExternType
Trait Implementations§
Source§impl Clone for ExportDesc
impl Clone for ExportDesc
Source§fn clone(&self) -> ExportDesc
fn clone(&self) -> ExportDesc
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 moreAuto 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