Expand description
Traits that enable building stable and private algorithms.
Modules
Traits
- Fallible absolute value that returns an error if overflowing.
- Fallible addition that returns an error if overflowing.
- Fallible division that returns an error if overflowing.
- Fallible multiplication that returns an error if overflowing.
- Fallibly raise to the power.
- Fallible subtraction that returns an error if overflowing.
- Checks if a value is null.
- Returns the length of self, where self is a collection.
- A type that can be used as a stability or privacy constant to scale a distance.
- Consts representing the maximum and minimum finite consecutive values.
- Fallible casting where the casted value is exactly equal to the original value.
- Consts representing the maximum and minimum finite representable values.
- Floating-point types.
- Bitwise consts and decompositions for float types.
- The subset of
Primitive
types that implement Eq and Hash. - Fallible addition with specified rounding.
- Fallible casting where the casted value rounds towards infinity.
- Fallible division with specified rounding.
- Fallible exponentiation with specified rounding.
- Fallibly exponentiate and subtract one with specified rounding.
- Fallible natural logarithm with specified rounding.
- Fallible logarithm of the argument plus one with specified rounding.
- Fallible base-2 logarithm with specified rounding.
- Fallible multiplication with specified rounding.
- Fallibly raise self to the power with specified rounding.
- Fallible square root with specified rounding.
- Fallible subtraction with specified rounding.
- Defines an example null value inherent to
Self
. - The subset of
Primitive
types that have numerical operations. - A shorthand to indicate the set of types that implement the most common traits, like Clone and Debug.
- Fallible casting where the casted value is rounded to nearest.
- Addition that saturates at the numeric bounds instead of overflowing.
- Multiplication that saturates at the numeric bounds instead of overflowing.
- TotalOrd is well-defined on types that are Ord on their non-null values.