pub enum VMImportType {
Function {
sig: VMSharedSignatureIndex,
static_trampoline: VMTrampoline,
},
Global(GlobalType),
Table(TableType),
Memory(MemoryType, MemoryStyle),
}
Expand description
Type of the import.
Variants§
Function
A function import.
Fields
§
sig: VMSharedSignatureIndex
Signature for the function import.
§
static_trampoline: VMTrampoline
Trampoline to use for functions that use [VMFunctionKind::Static
].
Global(GlobalType)
A global.
Table(TableType)
A table.
Memory(MemoryType, MemoryStyle)
Some memory.
Auto Trait Implementations§
impl Freeze for VMImportType
impl RefUnwindSafe for VMImportType
impl Send for VMImportType
impl Sync for VMImportType
impl Unpin for VMImportType
impl UnwindSafe for VMImportType
Blanket Implementations§
Source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
Source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
Source§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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