[][src]Enum wasmer_vm::VMFunctionKind

#[repr(C)]pub enum VMFunctionKind {
    Static,
    Dynamic,
}

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:

  1. In the Host, natively
  2. 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:

  1. In the Host, dynamically

Trait Implementations

impl Clone for VMFunctionKind[src]

impl Copy for VMFunctionKind[src]

impl Debug for VMFunctionKind[src]

impl PartialEq<VMFunctionKind> for VMFunctionKind[src]

impl StructuralPartialEq for VMFunctionKind[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.