pub trait Storage: Sized {
// Required methods
fn save(&self, stream: &mut impl Write) -> Result<()>;
fn load(stream: &mut impl Read) -> Result<Self>;
}Required Methods§
fn save(&self, stream: &mut impl Write) -> Result<()>
fn load(stream: &mut impl Read) -> Result<Self>
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.