ScaledInteger

Trait ScaledInteger 

Source
pub trait ScaledInteger<const D: u8>:
    PrimInt
    + ConstZero
    + ConstOne
    + One
    + WrappingAdd<Output = Self>
    + CheckedRem<Output = Self>
    + Not<Output = Self>
    + Shr<u32, Output = Self>
    + AddAssign
    + DivAssign
    + Display
    + FromStr<Err = ParseIntError>
    + Cheats<D>
    + FullMulDiv { }

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<I, const D: u8> ScaledInteger<D> for I
where I: PrimInt + ConstZero + ConstOne + One + WrappingAdd<Output = Self> + CheckedRem<Output = Self> + Not<Output = Self> + Shr<u32, Output = Self> + AddAssign + DivAssign + Display + FromStr<Err = ParseIntError> + Cheats<D> + FullMulDiv,