Skip to main content

NonMaxU32

Type Alias NonMaxU32 

Source
pub type NonMaxU32 = NonMax<u32>;
Expand description

An unsigned 32-bit integer that cannot be u32::MAX.

Aliased Type§

pub struct NonMaxU32(/* private fields */);

Implementations§

Source§

impl NonMaxU32

Source

pub const MIN: Self

The minimum value for this type.

Source

pub const MAX: Self

The maximum value for this type.

Source

pub const ZERO: Self

The zero value for this type.

Source

pub const unsafe fn new_unchecked(value: u32) -> Self

Creates a new NonMax without checking the value.

§Safety

The value must not be the maximum value of the underlying type.