pub trait FileSystemStorable: Sized {
// Required methods
fn load(path: impl AsRef<Path>) -> Result<Self, Error>;
fn store(&self, path: impl AsRef<Path>) -> Result<(), Error>;
}Required Methods§
fn load(path: impl AsRef<Path>) -> Result<Self, Error>
fn store(&self, path: impl AsRef<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.