Trait fj::models::Host

source ·
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§

source

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.

Implementors§