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 ==.
This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.

Implementors§