#[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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
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<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>
Returns the layout of the type.