Struct nyar_wasm::WasiFunction
source · pub struct WasiFunction {
pub symbol: Identifier,
pub inputs: Vec<WasiParameter>,
pub output: Vec<WasiParameter>,
pub body: WasiFunctionBody,
}
Expand description
The type of external WASI function
Fields§
§symbol: Identifier
The symbol of the function in source language
inputs: Vec<WasiParameter>
The input parameters of the function
output: Vec<WasiParameter>
The output parameter of the function
body: WasiFunctionBody
Implementations§
source§impl WasiFunction
impl WasiFunction
sourcepub fn external(
wasi_module: &WasiModule,
wasi_name: &Arc<str>,
name: &Identifier
) -> Self
pub fn external( wasi_module: &WasiModule, wasi_name: &Arc<str>, name: &Identifier ) -> Self
Create a new external function type with the given symbol and WASI module
Trait Implementations§
source§impl AddAssign<WasiParameter> for WasiFunction
impl AddAssign<WasiParameter> for WasiFunction
source§fn add_assign(&mut self, rhs: WasiParameter)
fn add_assign(&mut self, rhs: WasiParameter)
Performs the
+=
operation. Read moresource§impl AddAssign<WasiType> for WasiFunction
impl AddAssign<WasiType> for WasiFunction
source§fn add_assign(&mut self, rhs: WasiType)
fn add_assign(&mut self, rhs: WasiType)
Performs the
+=
operation. Read moresource§impl Clone for WasiFunction
impl Clone for WasiFunction
source§fn clone(&self) -> WasiFunction
fn clone(&self) -> WasiFunction
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 WasiFunction
impl Debug for WasiFunction
source§impl Display for WasiFunction
impl Display for WasiFunction
source§impl Hash for WasiFunction
impl Hash for WasiFunction
source§impl Ord for WasiFunction
impl Ord for WasiFunction
source§fn cmp(&self, other: &WasiFunction) -> Ordering
fn cmp(&self, other: &WasiFunction) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for WasiFunction
impl PartialEq for WasiFunction
source§fn eq(&self, other: &WasiFunction) -> bool
fn eq(&self, other: &WasiFunction) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for WasiFunction
impl PartialOrd for WasiFunction
source§fn partial_cmp(&self, other: &WasiFunction) -> Option<Ordering>
fn partial_cmp(&self, other: &WasiFunction) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Eq for WasiFunction
impl StructuralPartialEq for WasiFunction
Auto Trait Implementations§
impl Freeze for WasiFunction
impl RefUnwindSafe for WasiFunction
impl Send for WasiFunction
impl Sync for WasiFunction
impl Unpin for WasiFunction
impl UnwindSafe for WasiFunction
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<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.