Enum wasmer_vm::VMFunctionKind [−][src]
#[repr(C)]
pub enum VMFunctionKind {
Static,
Dynamic,
}Expand description
A function kind is a calling convention into and out of wasm code.
Variants
A static function has the native signature:
extern "C" (vmctx, arg1, arg2...) -> (result1, result2, ...).
This is the default for functions that are defined:
- In the Host, natively
- In the WebAssembly file
A dynamic function has the native signature:
extern "C" (ctx, &[Value]) -> Vec<Value>.
This is the default for functions that are defined:
- In the Host, dynamically
Trait Implementations
Returns the size of the referenced value in bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for VMFunctionKindimpl Send for VMFunctionKindimpl Sync for VMFunctionKindimpl Unpin for VMFunctionKindimpl UnwindSafe for VMFunctionKindBlanket Implementations
type ArchivedMetadata = ()
type ArchivedMetadata = ()The archived version of the pointer metadata for this type.
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::Metadata
pub fn pointer_metadata(
&<T as ArchivePointee>::ArchivedMetadata
) -> <T as Pointee>::MetadataConverts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more