Skip to main content

NonMaxUsize

Type Alias NonMaxUsize 

Source
pub type NonMaxUsize = NonValueUsize<{ usize::MAX }>;
Expand description

A usize that is known not to equal its maximum. Drop-in for nonmax::NonMaxUsize.

Aliased Type§

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

Trait Implementations§

Source§

impl From<NonValueU8<{ $prim::MAX }>> for NonMaxUsize

Source§

fn from(small: NonMaxU8) -> Self

Converts to this type from the input type.
Source§

impl From<NonValueU16<{ $prim::MAX }>> for NonMaxUsize

Source§

fn from(small: NonMaxU16) -> Self

Converts to this type from the input type.
Source§

impl From<u8> for NonMaxUsize

Source§

fn from(small: u8) -> Self

Converts to this type from the input type.
Source§

impl From<u16> for NonMaxUsize

Source§

fn from(small: u16) -> Self

Converts to this type from the input type.