[−][src]Trait fixed::traits::FixedOptionalFeatures
This trait is used to provide supertraits to the Fixed
trait
depending on the crate’s optional features.
- If the
f16
feature is enabled,PartialOrd<f16>
andPartialOrd<bf16>
are supertraits ofFixed
. - If the
num-traits
experimental feature is enabled, the following are supertraits ofFixed
:Bounded
,Zero
(but notOne
because not all fixed-point numbers can represent the value 1)CheckedAdd
,CheckedSub
,CheckedNeg
,CheckedMul
,CheckedDiv
,CheckedRem
,CheckedShl
,CheckedShr
SaturatingAdd
,SaturatingSub
,SaturatingMul
WrappingAdd
,WrappingSub
,WrappingNeg
,WrappingMul
,WrappingShl
,WrappingShr
FloatConst
ToPrimitive
,FromPrimitive
- If the
serde
feature is enabled,Serialize
andDeserialize
are supertraits ofFixed
.