pub trait SaveState {
// Required methods
fn is_dirty(&self) -> bool;
fn save(&mut self, writer: &mut dyn Write) -> Result<(), Error>;
fn load(&mut self, reader: &mut dyn Read) -> Result<(), Error>;
}Expand description
A save state, if cores support it. This is used to save the state of the internal memory of the core, so that it can be restored later.