Trait fj::models::HostExt

source ·
pub trait HostExt {
    // Required method
    fn register_model<M>(&mut self, model: M)
       where M: Model + 'static;
}
Expand description

Extension methods to augment the Host API.

The purpose of this trait is to keep Host object-safe.

Required Methods§

source

fn register_model<M>(&mut self, model: M)where M: Model + 'static,

Register a model with the Fornjot runtime.

Implementors§

source§

impl<H: Host + ?Sized> HostExt for H