Expand description
Traits for conversions and for generic use of fixed-point numbers.
Traits§
- Fixed
- This trait provides methods common to all fixed-point numbers.
- Fixed
Bits - This trait is implemented for
Fixed::Bitsfor all fixed-point numbers. - Fixed
Bits Cast - This trait is used to provide supertraits to the
FixedBitstrait, and should not be used directly. - Fixed
Bits Optional Arbitrary - This trait is used to provide supertrait to the
FixedBitstrait depending on the crates’s optional features, and should not be used directly. - Fixed
Bits Optional Borsh - This trait is used to provide supertraits to the
FixedBitstrait depending on the crates’s optional features, and should not be used directly. - Fixed
Bits Optional Num - This trait is used to provide supertraits to the
FixedBitstrait depending on the crates’s optional features, and should not be used directly. - Fixed
Bits Optional Serde - This trait is used to provide supertraits to the
FixedBitstrait depending on the crates’s optional features, and should not be used directly. - Fixed
Equiv - This trait provides a way to convert a number to/from an equivalent fixed-point number.
- Fixed
Optional Arbitrary - This trait is used to provide supertraits to the
Fixedtrait depending on the crate’s optional features, and should not be used directly. - Fixed
Optional Borsh - This trait is used to provide supertraits to the
Fixedtrait depending on the crate’s optional features, and should not be used directly. - Fixed
Optional Features - This trait is used to provide supertraits to the
Fixedtrait depending on the crate’s optional features, and should not be used directly. - Fixed
Optional Nightly Float - This trait is used to provide supertraits to the
Fixedtrait depending on the crate’s optional features, and should not be used directly. - Fixed
Optional Num - This trait is used to provide supertraits to the
Fixedtrait depending on the crate’s optional features, and should not be used directly. - Fixed
Optional Serde - This trait is used to provide supertraits to the
Fixedtrait depending on the crate’s optional features, and should not be used directly. - Fixed
Signed - This trait provides methods common to all signed fixed-point numbers.
- Fixed
Unsigned - This trait provides methods common to all unsigned fixed-point numbers.
- From
Fixed - This trait provides checked conversions from fixed-point numbers.
- Lossless
TryFrom - This trait provides lossless conversions that might be fallible.
- Lossless
TryInto - This trait provides lossless conversions that might be fallible.
This is the reciprocal of
LosslessTryFrom. - Lossy
From - This trait provides infallible conversions that might be lossy.
- Lossy
Into - This trait provides infallible conversions that might be lossy.
This is the reciprocal of
LossyFrom. - ToFixed
- This trait provides checked conversions to fixed-point numbers.