pub trait Kernel {
// Required methods
fn get_model(&self, name: &str) -> Result<Rc<Model>, HitError>;
fn get_instantiable_models(&self) -> Vec<&Model>;
fn get_plugins(&self) -> Plugins;
fn get_models(&self) -> Vec<String>;
}Required Methods§
fn get_model(&self, name: &str) -> Result<Rc<Model>, HitError>
fn get_instantiable_models(&self) -> Vec<&Model>
fn get_plugins(&self) -> Plugins
fn get_models(&self) -> Vec<String>
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".