Trait malachite_base::comparison::traits::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.

Object Safety§

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§