pub struct HostFunctionDef {
pub name: String,
pub params: Vec<WasmType>,
pub return_type: WasmType,
}Expand description
Host function definition
Fields§
§name: StringFunction name (as it appears in imports)
params: Vec<WasmType>Parameter types
return_type: WasmTypeReturn type
Implementations§
Trait Implementations§
Source§impl Clone for HostFunctionDef
impl Clone for HostFunctionDef
Source§fn clone(&self) -> HostFunctionDef
fn clone(&self) -> HostFunctionDef
Returns a duplicate 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 HostFunctionDef
impl Debug for HostFunctionDef
Source§impl PartialEq for HostFunctionDef
impl PartialEq for HostFunctionDef
impl Eq for HostFunctionDef
impl StructuralPartialEq for HostFunctionDef
Auto Trait Implementations§
impl Freeze for HostFunctionDef
impl RefUnwindSafe for HostFunctionDef
impl Send for HostFunctionDef
impl Sync for HostFunctionDef
impl Unpin for HostFunctionDef
impl UnwindSafe for HostFunctionDef
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
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§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.