SaveToFile

Trait SaveToFile 

Source
pub trait SaveToFile<U> {
    // Required method
    fn save<P: AsRef<Path>>(&self, file: P) -> Result<(), Error>;
}
Expand description

Trait that defines the implementation of the ability to save a model to a file

Required Methods§

Source

fn save<P: AsRef<Path>>(&self, file: P) -> Result<(), Error>

Save to File

§Arguments
  • file - Destination path
§Errors

This function may return the following errors

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§