Enum wasmer_vm::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
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§
source§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
source§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
source§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: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
source§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
Gets the layout of the type.