pub trait Stateful<S> {
// Required methods
fn load_state(&mut self, state: S);
fn store_state(&self) -> S;
}
Expand description
A chip whose state could be persisted.
pub trait Stateful<S> {
// Required methods
fn load_state(&mut self, state: S);
fn store_state(&self) -> S;
}
A chip whose state could be persisted.