Trait StateArithm

Source
pub trait StateArithm:
    Clone
    + Debug
    + StrictDumb
    + StrictEncode
    + StrictDecode
    + Serde {
    // Required method
    fn calculator(&self) -> Box<dyn StateCalc>;
}

Required Methods§

Source

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.

Implementors§