Trait linera_witty::ExportTo

source ·
pub trait ExportTo<Instance> {
    // Required method
    fn export_to(instance: &mut Instance) -> Result<(), RuntimeError>;
}
Expand description

A type that can register some functions as exports for the target Instance.

Required Methods§

source

fn export_to(instance: &mut Instance) -> Result<(), RuntimeError>

Registers some host functions as exports to the provided guest Wasm instance.

Object Safety§

This trait is not object safe.

Implementors§