Expand description
Numeric traits and functions for the built-in numeric types.
Re-exports§
pub use error::IntErrorKind;pub use error::ParseIntError;pub use error::TryFromIntError;pub use float_parse::ParseFloatError;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.
- float_
parse 🔒 - User-facing API for float parsing.
- int_
macros 🔒 - nonzero 🔒
- Definitions of integer that is known not to equal zero.
- saturating 🔒
- Definitions of
Saturating<T>. - traits 🔒
- uint_
macros 🔒 - wrapping 🔒
- Definitions of
Wrapping<T>. - imp 👻
Experimental - Numeric routines, separate from API.
- niche_
types 👻Experimental - 100% perma-unstable
Macros§
- carrying_
carryless_ 🔒mul_ impl - from_
str_ 🔒int_ impl - i8_
xe_ 🔒bytes_ doc - impl_
sealed 🔒 - midpoint_
impl 🔒 - sign_
dependent_ 🔒expr - try_opt 🔒
- u8_
xe_ 🔒bytes_ doc - usize_
isize_ 🔒from_ xe_ bytes_ doc - usize_
isize_ 🔒to_ xe_ bytes_ doc - widening_
carryless_ 🔒mul_ impl
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.