linera_witty

Trait 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§