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

Object Safety§

This trait is not object safe.

Implementors§