Module num

Module num 

1.6.0 · Source
Expand description

Numeric traits and functions for the built-in numeric types.

Structs§

NonZeroNon-ferrocene_certified
A value that is known not to equal zero.
ParseFloatErrorNon-ferrocene_certified
An error which can be returned when parsing a float.
ParseIntErrorNon-ferrocene_certified
An error which can be returned when parsing an integer.
SaturatingNon-ferrocene_certified
Provides intentionally-saturating arithmetic on T.
TryFromIntErrorNon-ferrocene_certified
The error type returned when a checked integral type conversion fails.
WrappingNon-ferrocene_certified
Provides intentionally-wrapped arithmetic on T.

Enums§

FpCategoryNon-ferrocene_certified
A classification of floating point numbers.
IntErrorKindNon-ferrocene_certified
Enum to store the various types of errors that can cause parsing an integer to fail.

Traits§

ZeroablePrimitiveExperimentalNon-ferrocene_certified
A marker trait for primitive types which can be zero.

Type Aliases§

NonZeroI8Non-ferrocene_certified
An i8 that is known not to equal zero.
NonZeroI16Non-ferrocene_certified
An i16 that is known not to equal zero.
NonZeroI32Non-ferrocene_certified
An i32 that is known not to equal zero.
NonZeroI64Non-ferrocene_certified
An i64 that is known not to equal zero.
NonZeroI128Non-ferrocene_certified
An i128 that is known not to equal zero.
NonZeroIsizeNon-ferrocene_certified
An isize that is known not to equal zero.
NonZeroU8Non-ferrocene_certified
A u8 that is known not to equal zero.
NonZeroU16Non-ferrocene_certified
A u16 that is known not to equal zero.
NonZeroU32Non-ferrocene_certified
A u32 that is known not to equal zero.
NonZeroU64Non-ferrocene_certified
A u64 that is known not to equal zero.
NonZeroU128Non-ferrocene_certified
A u128 that is known not to equal zero.
NonZeroUsizeNon-ferrocene_certified
A usize that is known not to equal zero.