Expand description
Numeric traits and functions for the built-in numeric types.
Modules§
- 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
Structs§
- NonZero
- A value that is known not to equal zero.
- Parse
Float Error - An error which can be returned when parsing a float.
- Parse
IntError - An error which can be returned when parsing an integer.
- Saturating
- Provides intentionally-saturating arithmetic on
T
. - TryFrom
IntError - The error type returned when a checked integral type conversion fails.
- Wrapping
- Provides intentionally-wrapped arithmetic on
T
.
Enums§
- FpCategory
- A classification of floating point numbers.
- IntError
Kind - Enum to store the various types of errors that can cause parsing an integer to fail.
Traits§
- Zeroable
Primitive Experimental - A marker trait for primitive types which can be zero.
Functions§
- 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.
Type Aliases§
- NonZero
I8 - An
i8
that is known not to equal zero. - NonZero
I16 - An
i16
that is known not to equal zero. - NonZero
I32 - An
i32
that is known not to equal zero. - NonZero
I64 - An
i64
that is known not to equal zero. - NonZero
I128 - An
i128
that is known not to equal zero. - NonZero
Isize - An
isize
that is known not to equal zero. - NonZero
U8 - A
u8
that is known not to equal zero. - NonZero
U16 - A
u16
that is known not to equal zero. - NonZero
U32 - A
u32
that is known not to equal zero. - NonZero
U64 - A
u64
that is known not to equal zero. - NonZero
U128 - A
u128
that is known not to equal zero. - NonZero
Usize - A
usize
that is known not to equal zero.