pub trait Host {
// Required method
fn register_boxed_model(&mut self, model: Box<dyn Model>);
}
Expand description
An abstract interface to the Fornjot host.
Required Methods§
sourcefn register_boxed_model(&mut self, model: Box<dyn Model>)
fn register_boxed_model(&mut self, model: Box<dyn Model>)
Register a model.
This is mainly for more advanced use cases (e.g. when you need to close
over extra state to load the model). For simpler models, you probably
want to use HostExt::register_model()
instead.