Union wasmer_vm::VMFunctionEnvironment [−][src]
Expand description
Union representing the first parameter passed when calling a function.
It may either be a pointer to the VMContext
if it’s a Wasm function
or a pointer to arbitrary data controlled by the host if it’s a host function.
Fields
vmctx: *mut VMContext
Wasm functions take a pointer to VMContext
.
host_env: *mut c_void
Host functions can have custom environments.
Implementations
Trait Implementations
Returns the size of the referenced value in bytes. Read more
Auto Trait Implementations
impl RefUnwindSafe for VMFunctionEnvironment
impl !Send for VMFunctionEnvironment
impl !Sync for VMFunctionEnvironment
impl Unpin for VMFunctionEnvironment
impl UnwindSafe for VMFunctionEnvironment
Blanket 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>::Metadata
Converts some archived metadata to the pointer metadata for itself.
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.