pub trait SaveData {
// Required methods
fn write_save_data(&self, writer: impl Write) -> Result<(), Error>;
fn load_save_data(&mut self, reader: impl Read) -> Result<(), Error>;
fn has_save_data(&self) -> bool;
}Required Methods§
fn write_save_data(&self, writer: impl Write) -> Result<(), Error>
fn load_save_data(&mut self, reader: impl Read) -> Result<(), Error>
fn has_save_data(&self) -> bool
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.