pub type NonMaxUsize = NonMax<usize>;Expand description
An unsigned pointer-sized integer that cannot be usize::MAX.
Aliased Type§
pub struct NonMaxUsize(/* private fields */);Implementations§
Source§impl NonMaxUsize
impl NonMaxUsize
Sourcepub const unsafe fn new_unchecked(value: usize) -> Self
pub const unsafe fn new_unchecked(value: usize) -> Self
Creates a new NonMax without checking the value.
§Safety
The value must not be the maximum value of the underlying type.