pub enum ImportDesc {
Func(TypeIdx),
Table(TableType),
Mem(MemType),
Global(GlobalType),
}Variants§
Implementations§
Source§impl ImportDesc
impl ImportDesc
pub fn decode_and_validate( wasm: &mut WasmDecoder<'_>, c_types: &IdxVec<TypeIdx, FuncType>, ) -> Result<Self, ValidationError>
Sourcepub unsafe fn extern_type(&self, module: &Module<'_>) -> ExternType
pub unsafe fn extern_type(&self, module: &Module<'_>) -> ExternType
Trait Implementations§
Source§impl Clone for ImportDesc
impl Clone for ImportDesc
Source§fn clone(&self) -> ImportDesc
fn clone(&self) -> ImportDesc
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 ImportDesc
impl RefUnwindSafe for ImportDesc
impl Send for ImportDesc
impl Sync for ImportDesc
impl Unpin for ImportDesc
impl UnwindSafe for ImportDesc
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