Trait sp_wasm_interface::Function [−][src]
Something that provides a function implementation on the host for a wasm function.
Required methods
fn name(&self) -> &str
[src]
Returns the name of this function.
fn signature(&self) -> Signature
[src]
Returns the signature of this function.
fn execute(
&self,
context: &mut dyn FunctionContext,
args: &mut dyn Iterator<Item = Value>
) -> Result<Option<Value>>
[src]
&self,
context: &mut dyn FunctionContext,
args: &mut dyn Iterator<Item = Value>
) -> Result<Option<Value>>
Execute this function with the given arguments.