Enum wasmer_vm::vmcontext::VMFunctionKind
source · #[repr(C)]pub enum VMFunctionKind {
Static = 0,
Dynamic = 1,
}
Expand description
A function kind is a calling convention into and out of wasm code.
Variants§
Static = 0
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
Dynamic = 1
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§
source§impl Clone for VMFunctionKind
impl Clone for VMFunctionKind
source§fn clone(&self) -> VMFunctionKind
fn clone(&self) -> VMFunctionKind
Returns a copy 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 moresource§impl Debug for VMFunctionKind
impl Debug for VMFunctionKind
source§impl PartialEq for VMFunctionKind
impl PartialEq for VMFunctionKind
source§fn eq(&self, other: &VMFunctionKind) -> bool
fn eq(&self, other: &VMFunctionKind) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for VMFunctionKind
impl Eq for VMFunctionKind
impl StructuralPartialEq for VMFunctionKind
Auto Trait Implementations§
impl Freeze for VMFunctionKind
impl RefUnwindSafe for VMFunctionKind
impl Send for VMFunctionKind
impl Sync for VMFunctionKind
impl Unpin for VMFunctionKind
impl UnwindSafe for VMFunctionKind
Blanket Implementations§
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§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
source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Returns the layout of the type.