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 VMContextWasm functions take a pointer to VMContext.
host_env: *mut c_voidHost 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 VMFunctionEnvironmentimpl !Send for VMFunctionEnvironmentimpl !Sync for VMFunctionEnvironmentimpl Unpin for VMFunctionEnvironmentimpl UnwindSafe for VMFunctionEnvironmentBlanket 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
Compare self to key and return true if they are equal.