pub enum ParamType {
Show 14 variants
I32,
I64,
F32,
F64,
Ptr,
Handle,
Out,
Bytes,
Length,
StructIn,
StructsIn,
StructOut,
ErrorOut,
StructsOut,
}Expand description
A C parameter: a number by its wasm type, or a pointer by what it crosses as
Variants§
I32
I64
F32
F64
Ptr
linear memory: a text, a buffer
Handle
a handle id (CPointer::Handle)
Out
an out-pointer, filled by the call (CPointer::Out)
Bytes
const uint8_t *module, size_t length: a warp text or list of byte values, copied for the call; its length
fills the Length after it
Length
the size_t after Bytes or StructsIn: left out of the warp call
StructIn
const wasmtime_instance_t *: a map written into the struct’s bytes (or a handle id, its pointer)
StructsIn
const wasmtime_val_t *args, size_t nargs: a list of maps; its length fills the Length after it
StructOut
a trailing wasmtime_instance_t *: left out of the warp call, the call’s result (CPointer::Struct)
ErrorOut
wasm_trap_t **trap, an error-shaped out-pointer (is_error_type): left out, non-NULL after the call fails it
StructsOut
a trailing wasmtime_val_t *results, size_t nresults: left out, the size_t after it says how many, the call’s
result is their list
Implementations§
Trait Implementations§
impl Copy for ParamType
impl Eq for ParamType
impl StructuralPartialEq for ParamType
Auto Trait Implementations§
impl Freeze for ParamType
impl RefUnwindSafe for ParamType
impl Send for ParamType
impl Sync for ParamType
impl Unpin for ParamType
impl UnsafeUnpin for ParamType
impl UnwindSafe for ParamType
Blanket Implementations§
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.