Trait fixed::traits::FixedBitsOptionalNum
source · pub trait FixedBitsOptionalNum: Sealedwhere
Self: Num<FromStrRadixErr = ParseIntError> + NumRef + NumAssignRef,
Self: PrimInt + FromPrimitive,
Self: AsPrimitive<i8> + AsPrimitive<i16> + AsPrimitive<i32>,
Self: AsPrimitive<i64> + AsPrimitive<i128> + AsPrimitive<isize>,
Self: AsPrimitive<u8> + AsPrimitive<u16> + AsPrimitive<u32>,
Self: AsPrimitive<u64> + AsPrimitive<u128> + AsPrimitive<usize>,
Self: AsPrimitive<f32> + AsPrimitive<f64>,
Self: CheckedNeg + CheckedRem + CheckedShl + CheckedShr,
Self: SaturatingAdd + SaturatingSub + SaturatingMul,
Self: WrappingAdd + WrappingSub + WrappingNeg + WrappingMul,
Self: WrappingShl + WrappingShr,
Self: OverflowingAdd + OverflowingSub + OverflowingMul,
Self: Euclid + CheckedEuclid,
Self: MulAdd + MulAddAssign,{ }
Expand description
This trait is used to provide supertraits to the FixedBits
trait
depending on the crates’s optional features, and should not be used
directly.
If the num-traits
experimental feature is
enabled, the following are supertraits of FixedBits
:
Num
,NumRef
,NumAssignRef
PrimInt
,FromPrimitive
AsPrimitive<T>
whereT
can bei8
,i16
,i32
,i64
,i128
,isize
,u8
,u16
,u32
,u64
,u128
,usize
,f32
orf64
CheckedNeg
,CheckedRem
,CheckedShl
,CheckedShr
SaturatingAdd
,SaturatingSub
,SaturatingMul
WrappingAdd
,WrappingSub
,WrappingNeg
,WrappingMul
,WrappingShl
,WrappingShr
OverflowingAdd
,OverflowingSub
,OverflowingMul
Euclid
,CheckedEuclid
MulAdd
,MulAddAssign