Skip to main content

NonMaxU16

Type Alias NonMaxU16 

Source
pub type NonMaxU16 = NonValueU16<{ u16::MAX }>;
Expand description

⚗️ An unsigned integer that is known not to equal its MAX value.


📍 num/grain/niche


Unlike the NonValue* types in general, this type alias implements the Default and ConstInit traits.

Aliased Type§

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

Trait Implementations§

Source§

impl Default for NonMaxU16

Source§

fn default() -> Self

§Features

Makes use of the unsafe_niche feature if enabled.

Source§

impl IndexRepr for NonMaxU16

Source§

type Prim = u16

The primitive integer backing this index representation.