NumState

Trait NumState 

Source
pub trait NumState:
    StdState
    + Copy
    + Eq
    + Add<Output = Self>
    + Sub<Output = Self>
    + Mul<Output = Self>
    + Div<Output = Self>
    + Rem<Output = Self>
    + Neg<Output = Self>
    + Not<Output = Self>
    + AddAssign
    + SubAssign
    + MulAssign
    + DivAssign
    + One
    + Zero
    + ToPrimitive
    + FromPrimitive { }
Expand description

The NumState trait extends the RawState trait to include numeric operations.

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§

Source§

impl<T> NumState for T
where T: Sub<Output = T> + StdState + Mul<Output = T> + Copy + Div<Output = T> + Eq + Rem<Output = T> + PartialOrd + Neg<Output = T> + Add<Output = T> + Not<Output = T> + AddAssign + SubAssign + MulAssign + DivAssign + One + Zero + ToPrimitive + FromPrimitive,