Skip to main content

NonMaxI32

Type Alias NonMaxI32 

Source
pub type NonMaxI32 = NonMax<i32>;
Expand description

A signed 32-bit integer that cannot be i32::MAX.

Aliased Type§

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

Implementations§

Source§

impl NonMaxI32

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

Creates a new NonMax without checking the value.

§Safety

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