Expand description
Numeric traits and functions for the built-in numeric types.
Re-exportsΒ§
pub use dec2flt::ParseFloatError;
pub use error::IntErrorKind;
pub use error::ParseIntError;
pub use error::TryFromIntError;
pub use nonzero::NonZero;
pub use nonzero::NonZeroI8;
pub use nonzero::NonZeroI16;
pub use nonzero::NonZeroI32;
pub use nonzero::NonZeroI64;
pub use nonzero::NonZeroI128;
pub use nonzero::NonZeroIsize;
pub use nonzero::NonZeroU8;
pub use nonzero::NonZeroU16;
pub use nonzero::NonZeroU32;
pub use nonzero::NonZeroU64;
pub use nonzero::NonZeroU128;
pub use nonzero::NonZeroUsize;
pub use saturating::Saturating;
pub use wrapping::Wrapping;
pub use nonzero::ZeroablePrimitive;
Experimental
ModulesΒ§
- error π
- Error types for conversion to integral types.
- int_
log10 π - int_
macros π - int_
sqrt π - These functions use the Karatsuba square root algorithm to compute the integer square root for the primitive integer types.
- nonzero π
- Definitions of integer that is known not to equal zero.
- overflow_
panic π - Functions for panicking on overflow.
- saturating π
- Definitions of
Saturating<T>
. - uint_
macros π - wrapping π
- Definitions of
Wrapping<T>
. - bignum π»
Experimental - Custom arbitrary-precision number (bignum) implementation.
- dec2flt π»
Experimental - Converting decimal strings into IEEE 754 binary floating point numbers.
- diy_
float π»Experimental - Extended precision βsoft floatβ, for internal use only.
- flt2dec π»
Experimental - Floating-point number to decimal conversion routines.
- fmt π»
Experimental - Shared utilities used by both float and integer formatting.
- niche_
types π»Experimental - 100% perma-unstable
MacrosΒ§
- from_
str_ πint_ impl - i8_
xe_ πbytes_ doc - midpoint_
impl π - sign_
dependent_ πexpr - try_opt π
- u8_
xe_ πbytes_ doc - usize_
isize_ πfrom_ xe_ bytes_ doc - usize_
isize_ πto_ xe_ bytes_ doc
EnumsΒ§
- FpCategory
- A classification of floating point numbers.
ConstantsΒ§
- ASCII_
CASE_ πMASK - If the bit selected by this mask is set, ascii is lower case.
FunctionsΒ§
- from_
ascii_ πradix_ panic - can_
not_ π»overflow Experimental - Determines if a string of text of that length of that radix could be guaranteed to be stored in the given type T. Note that if the radix is known to the compiler, it is just the check of digits.len that is done at runtime.