Trait sp_wasm_interface::Function[][src]

pub trait Function: MaybeRefUnwindSafe + Send + Sync {
    fn name(&self) -> &str;
fn signature(&self) -> Signature;
fn execute(
        &self,
        context: &mut dyn FunctionContext,
        args: &mut dyn Iterator<Item = Value>
    ) -> Result<Option<Value>>; }
Expand description

Something that provides a function implementation on the host for a wasm function.

Required methods

Returns the name of this function.

Returns the signature of this function.

Execute this function with the given arguments.

Trait Implementations

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Implementors