pub trait WasmFunc {
type Type: WasmType;
// Required methods
fn params(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>;
fn results(&self) -> Box<dyn Iterator<Item = Self::Type> + '_>;
// Provided methods
fn param_names(&self) -> Box<dyn Iterator<Item = Cow<'_, str>> + '_> { ... }
fn result_names(&self) -> Box<dyn Iterator<Item = Cow<'_, str>> + '_> { ... }
}
Expand description
The WasmFunc trait may be implemented to represent Wasm func type signatures to be (de)serialized with WAVE.