devela/num/niche/
reexports.rs

1// devela::num::niche::reexports
2//
3//! Reexported items from `core`.
4//
5
6use crate::reexport;
7
8reexport! { 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}
13
14/* niche behaviors */
15
16reexport! { 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}
24
25/* memory-optimization */
26
27reexport! { 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}