pub trait Host {
// Required methods
fn call(
&self,
callback: u32,
arena: Option<&Rc<AstArena>>,
args: Vec<HostValue>,
) -> Result<HostValue, HostError>;
fn arena(&self, handle: u32) -> Option<Rc<AstArena>>;
}Expand description
the host: calls the javascript callbacks
Required Methods§
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".