pub trait ContractStateEvolve {
type Context<'ctx>;
type Error: Error;
// Required methods
fn init(context: Self::Context<'_>) -> Self;
fn evolve_state(&mut self, op: OrdOpRef<'_>) -> Result<(), Self::Error>;
}
Required Associated Types§
Required Methods§
fn init(context: Self::Context<'_>) -> Self
fn evolve_state(&mut self, op: OrdOpRef<'_>) -> Result<(), Self::Error>
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.