Skip to main content

NonMaxI16

Type Alias NonMaxI16 

Source
pub type NonMaxI16 = NonMax<i16>;
Expand description

A signed 16-bit integer that cannot be i16::MAX.

Aliased Type§

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

Implementations§

Source§

impl NonMaxI16

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: i16) -> Self

Creates a new NonMax without checking the value.

§Safety

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