SaveData

Trait SaveData 

Source
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§

Source

fn write_save_data(&self, writer: impl Write) -> Result<(), Error>

Source

fn load_save_data(&mut self, reader: impl Read) -> Result<(), Error>

Source

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.

Implementors§