Struct sp_wasm_interface::ExtendedHostFunctions
source · pub struct ExtendedHostFunctions<Base, Overlay> { /* private fields */ }
Expand description
A wrapper which merges two sets of host functions, and allows the second set to override the host functions from the first set.
Trait Implementations§
source§impl<Base, Overlay> HostFunctions for ExtendedHostFunctions<Base, Overlay>where
Base: HostFunctions,
Overlay: HostFunctions,
impl<Base, Overlay> HostFunctions for ExtendedHostFunctions<Base, Overlay>where Base: HostFunctions, Overlay: HostFunctions,
source§fn host_functions() -> Vec<&'static dyn Function>
fn host_functions() -> Vec<&'static dyn Function>
Returns the host functions
Self
provides.source§fn register_static<T>(registry: &mut T) -> Result<(), T::Error>where
T: HostFunctionRegistry,
fn register_static<T>(registry: &mut T) -> Result<(), T::Error>where T: HostFunctionRegistry,
Statically registers the host functions.