pub trait FixedOptionalNum: Sealedwhere
    Self: Zero + Bounded + CheckedAdd + CheckedSub + CheckedNeg + CheckedMul + CheckedRem + CheckedShl + CheckedShr + SaturatingAdd + SaturatingSub + SaturatingMul + WrappingAdd + WrappingSub + WrappingNeg + WrappingMul + WrappingShl + WrappingShr + OverflowingAdd + OverflowingSub + OverflowingMul + ToPrimitive + FromPrimitive + FloatConst,{ }
Expand description

This trait is used to provide supertraits to the Fixed trait depending on the crate’s optional features, and should not be used directly.

If the num-traits experimental feature is enabled, the following are supertraits of Fixed:

The following are supertraits of FixedStrict as they have extra constraints:

The following are not supertraits of Fixed or FixedStrict, even though they are implemented for fixed-point numbers where applicable:

Similarly, Signed and Unsigned are not supertraits of FixedSigned and FixedUnsigned because they have Num as a supertrait.

Implementors§

source§

impl<const FRAC: i32> FixedOptionalNum for FixedI8<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedI16<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedI32<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedI64<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedI128<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedU8<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedU16<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedU32<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedU64<FRAC>

source§

impl<const FRAC: i32> FixedOptionalNum for FixedU128<FRAC>