pub trait FileLoadStore: Sized {
// Required methods
fn f_load(path: &Path) -> Result<Self, Error>;
fn f_save(&self, path: &Path) -> Result<(), Error>;
}Expand description
file load&store trait
Required Methods§
fn f_load(path: &Path) -> Result<Self, Error>
fn f_save(&self, path: &Path) -> Result<(), Error>
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.