Module lexical_util::num
source · Expand description
Utilities for Rust numbers.
These traits define useful properties, methods, associated types, and trait bounds, and conversions for working with numbers in generic code.
Traits§
- An interface for casting between machine scalars.
- Type that can be converted to primitive with
as
. - Float information for native float types.
- Defines a trait that supports integral operations.
- Numerical type trait.
- Primitive type trait (which all have static lifetimes).
- Defines a trait that supports signed integral operations.
- Defines a trait that supports unsigned integral operations.
Functions§
- Allows the high-level conversion of generic types as if
as
was used.