Available on crate feature
std
only.Expand description
Additional functionality for numerics.
This module provides some extra types that are useful when doing numerical work. See the individual documentation for each piece for more information.
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.
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.