openvm_stark_backend

Trait Stateful

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

Required Methods§

Source

fn load_state(&mut self, state: S)

Source

fn store_state(&self) -> S

Implementations on Foreign Types§

Source§

impl<S, C: Stateful<S>> Stateful<S> for RefCell<C>

Source§

fn load_state(&mut self, state: S)

Source§

fn store_state(&self) -> S

Implementors§