pub trait Cache<Memory: 'static + Clone>: Storage {
// Required methods
fn frame(&self) -> &Vec<Rc<RefCell<State<Memory>>>>;
fn frame_mut(&mut self) -> &mut Vec<Rc<RefCell<State<Memory>>>>;
fn memory(&self) -> Option<Memory>;
// Provided method
fn flush(&mut self) -> Option<()> { ... }
}Expand description
Cache traits