Trait Min

Source
pub trait Min {
    const MIN: Self;
}
Expand description

Defines the minimum value of a type.

Required Associated Constants§

Source

const MIN: Self

The minimum value of Self.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl Min for bool

Source§

const MIN: bool = false

The minimum value of a bool: false.

Source§

impl Min for char

Source§

const MIN: char = '\0'

The minimum value of a char: '\u{0}'.

This is the famous NUL character, a C0 control.

Source§

impl Min for f32

The lowest value representable by this type, negative infinity.

Source§

const MIN: f32 = -Inf_f32

Source§

impl Min for f64

The lowest value representable by this type, negative infinity.

Source§

const MIN: f64 = -Inf_f64

Source§

impl Min for i8

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: i8 = -128i8

Source§

impl Min for i16

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: i16 = -32_768i16

Source§

impl Min for i32

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: i32 = -2_147_483_648i32

Source§

impl Min for i64

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: i64 = -9_223_372_036_854_775_808i64

Source§

impl Min for i128

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: i128 = -170_141_183_460_469_231_731_687_303_715_884_105_728i128

Source§

impl Min for isize

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: isize = -9_223_372_036_854_775_808isize

Source§

impl Min for u8

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: u8 = 0u8

Source§

impl Min for u16

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: u16 = 0u16

Source§

impl Min for u32

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: u32 = 0u32

Source§

impl Min for u64

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: u64 = 0u64

Source§

impl Min for u128

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: u128 = 0u128

Source§

impl Min for usize

The lowest value representable by this type.

If Self is unsigned, MIN is 0. If Self is signed, MIN is $-2^{W-1}$.

§Examples

See here.

Source§

const MIN: usize = 0usize

Implementors§