Enum wasmer_vm::VMFunctionKind
source · #[repr(C)]
pub enum VMFunctionKind {
Static,
Dynamic,
}
Expand description
A function kind is a calling convention into and out of wasm code.
Variants§
Static
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
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<VMFunctionKind> for VMFunctionKind
impl PartialEq<VMFunctionKind> 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 StructuralEq for VMFunctionKind
impl StructuralPartialEq for VMFunctionKind
Auto Trait Implementations§
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.
§impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
impl<F, W, T, D> Deserialize<With<T, W>, D> for Fwhere
W: DeserializeWith<F, T, D>,
D: Fallible + ?Sized,
F: ?Sized,
§fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize(
&self,
deserializer: &mut D
) -> Result<With<T, W>, <D as Fallible>::Error>
Deserializes using the given deserializer
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.