1// devela::num::niche::reexports
2//
3//! Reexported items from `core`.
4//
56use crate::reexport;
78reexport! { rust: core::num,
9 tag: crate::TAG_ERROR!(),
10 doc: "The error type returned when a checked integral type conversion fails.",
11 TryFromIntError // IMPROVE: recreate
12}
1314/* niche behaviors */
1516reexport! { rust: core::num,
17 doc: "Provides intentionally-saturating arithmetic on `T`.",
18 Saturating
19}
20reexport! { rust: core::num,
21 doc: "Provides intentionally-wrapped arithmetic on `T`.",
22 Wrapping
23}
2425/* memory-optimization */
2627reexport! { rust: core::num,
28 doc: "A signed integer that is known not to equal zero.",
29 NonZeroI128, NonZeroI16, NonZeroI32, NonZeroI64, NonZeroI8, NonZeroIsize
30}
31reexport! { rust: core::num,
32 doc: "An unsigned integer that is known not to equal zero.",
33 NonZeroU128, NonZeroU16, NonZeroU32, NonZeroU64, NonZeroU8, NonZeroUsize
34}
35reexport! { rust: core::num,
36 doc: "A value that is known not to equal zero.",
37 NonZero
38}