We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 414482f commit 372ef07Copy full SHA for 372ef07
library/core/src/num/niche_types.rs
@@ -131,6 +131,8 @@ define_valid_range_type! {
131
pub struct NonZeroI32Inner(i32 as u32 in 1..=0xffff_ffff);
132
pub struct NonZeroI64Inner(i64 as u64 in 1..=0xffffffff_ffffffff);
133
pub struct NonZeroI128Inner(i128 as u128 in 1..=0xffffffffffffffff_ffffffffffffffff);
134
+
135
+ pub struct NonZeroCharInner(char as u32 in 1..=0x10ffff);
136
}
137
138
#[cfg(target_pointer_width = "16")]
library/core/src/num/nonzero.rs
@@ -79,6 +79,7 @@ impl_zeroable_primitive!(
79
NonZeroI64Inner(i64),
80
NonZeroI128Inner(i128),
81
NonZeroIsizeInner(isize),
82
+ NonZeroCharInner(char),
83
);
84
85
/// A value that is known not to equal zero.
0 commit comments