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§
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.