Expand description
Generic numeric types.
This module contains types and traits to manipulate numeric types in a generic manner. For
instance, in the standard library, the f32 and f64 trait share a lot of methods of the
same name and same semantics. Still, it is not possible to use them generically. This module
provides the FloatingPoint trait, implemented by both of those type, to remedy the
situation.
§Note
The current implementation of those traits does not strive to be general, in the sense that not all the common methods of the same kind of types are exposed. Only were included the ones that are used in the rest of the library.
Traits§
- Cast
From - A trait that allows to generically cast one type from another.
- Cast
Into - A trait that allows to generically cast one type into another.
- Floating
Point - A trait shared by all the floating point types.
- Numeric
- A trait implemented by any generic numeric type suitable for computations.
- Signed
Integer - A trait shared by all the unsigned integer types.
- Unsigned
Integer - A trait shared by all the unsigned integer types.