std/
num.rs

1//! Additional functionality for numerics.
2//!
3//! This module provides some extra types that are useful when doing numerical
4//! work. See the individual documentation for each piece for more information.
5
6#![stable(feature = "rust1", since = "1.0.0")]
7#![allow(missing_docs)]
8
9#[stable(feature = "int_error_matching", since = "1.55.0")]
10pub use core::num::IntErrorKind;
11#[stable(feature = "generic_nonzero", since = "1.79.0")]
12pub use core::num::NonZero;
13#[stable(feature = "saturating_int_impl", since = "1.74.0")]
14pub use core::num::Saturating;
15#[stable(feature = "rust1", since = "1.0.0")]
16pub use core::num::Wrapping;
17#[unstable(
18    feature = "nonzero_internals",
19    reason = "implementation detail which may disappear or be replaced at any time",
20    issue = "none"
21)]
22pub use core::num::ZeroablePrimitive;
23#[stable(feature = "rust1", since = "1.0.0")]
24pub use core::num::{FpCategory, ParseFloatError, ParseIntError, TryFromIntError};
25#[stable(feature = "signed_nonzero", since = "1.34.0")]
26pub use core::num::{NonZeroI8, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI128, NonZeroIsize};
27#[stable(feature = "nonzero", since = "1.28.0")]
28pub use core::num::{NonZeroU8, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU128, NonZeroUsize};