pub trait Checkpointable: Sized {
// Required methods
fn save(&self, path: &Path) -> Result<()>;
fn load(self, path: &Path) -> Result<Self>;
}Expand description
An agent whose weights can be saved to and loaded from disk.
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.