Trait primitiv::ModelImpl [] [src]

pub trait ModelImpl {
    fn load<P: AsRef<Path>>(&mut self, path: P, with_stats: bool) -> Result<()>;
fn load_on<P: AsRef<Path>, D: Device>(
        &mut self,
        path: P,
        with_stats: bool,
        device: Option<&mut D>
    ) -> Result<()>;
fn save<P: AsRef<Path>>(&self, path: P, with_stats: bool) -> Result<()>;
fn add_parameter(&mut self, name: &str, param: &mut Parameter);
fn add_submodel<M: AsMut<Model>>(&mut self, name: &str, model: &mut M); }

Required Methods

Implementors