pub trait StateMut<T> {
// Required methods
fn state(&self) -> Result<T, InstructionError>;
fn set_state(&mut self, state: &T) -> Result<(), InstructionError>;
}
Expand description
Convenience trait to covert bincode errors to instruction errors.