[][src]Trait fixed::traits::FixedOptionalFeatures

pub trait FixedOptionalFeatures where
    Self: PartialOrd<f16> + PartialOrd<bf16>,
    Self: Zero + Bounded + Inv,
    Self: CheckedAdd + CheckedSub + CheckedNeg + CheckedMul,
    Self: CheckedDiv + CheckedRem + CheckedShl + CheckedShr,
    Self: SaturatingAdd + SaturatingSub + SaturatingMul,
    Self: WrappingAdd + WrappingSub + WrappingNeg + WrappingMul,
    Self: WrappingShl + WrappingShr,
    Self: ToPrimitive + FromPrimitive + FloatConst,
    Self: Serialize + for<'de> Deserialize<'de>, 
{ }

This trait is used to provide supertraits to the Fixed trait depending on the crate’s optional features.

  1. If the f16 feature is enabled, PartialOrd<f16> and PartialOrd<bf16> are supertraits of Fixed.

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

    The following are not supertraits of Fixed, 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.

  3. If the serde feature is enabled, Serialize and Deserialize are supertraits of Fixed.

Implementors

impl<Frac: LeEqU8> FixedOptionalFeatures for FixedI8<Frac>[src]

impl<Frac: LeEqU8> FixedOptionalFeatures for FixedU8<Frac>[src]

impl<Frac: LeEqU16> FixedOptionalFeatures for FixedI16<Frac>[src]

impl<Frac: LeEqU16> FixedOptionalFeatures for FixedU16<Frac>[src]

impl<Frac: LeEqU32> FixedOptionalFeatures for FixedI32<Frac>[src]

impl<Frac: LeEqU32> FixedOptionalFeatures for FixedU32<Frac>[src]

impl<Frac: LeEqU64> FixedOptionalFeatures for FixedI64<Frac>[src]

impl<Frac: LeEqU64> FixedOptionalFeatures for FixedU64<Frac>[src]

impl<Frac: LeEqU128> FixedOptionalFeatures for FixedI128<Frac>[src]

impl<Frac: LeEqU128> FixedOptionalFeatures for FixedU128<Frac>[src]

Loading content...