pub trait StateArithm:
Clone
+ Debug
+ StrictDumb
+ StrictEncode
+ StrictDecode
+ Serde {
// Required method
fn calculator(&self) -> Box<dyn StateCalc>;
}Required Methods§
Sourcefn calculator(&self) -> Box<dyn StateCalc>
fn calculator(&self) -> Box<dyn StateCalc>
Calculator allows to perform calculations on the state (ordering and sorting, coin selection, change calculation).
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.