Skip to main content

MaxValue

Trait MaxValue 

Source
pub trait MaxValue {
    const MAX: Self;
}

Required Associated Constants§

Source

const MAX: 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 MaxValue for i8

Source§

const MAX: Self = i8::MAX

Source§

impl MaxValue for i16

Source§

const MAX: Self = i16::MAX

Source§

impl MaxValue for i32

Source§

const MAX: Self = i32::MAX

Source§

impl MaxValue for i64

Source§

const MAX: Self = i64::MAX

Source§

impl MaxValue for i128

Source§

const MAX: Self = i128::MAX

Source§

impl MaxValue for isize

Source§

const MAX: Self = isize::MAX

Source§

impl MaxValue for u8

Source§

const MAX: Self = u8::MAX

Source§

impl MaxValue for u16

Source§

const MAX: Self = u16::MAX

Source§

impl MaxValue for u32

Source§

const MAX: Self = u32::MAX

Source§

impl MaxValue for u64

Source§

const MAX: Self = u64::MAX

Source§

impl MaxValue for u128

Source§

const MAX: Self = u128::MAX

Source§

impl MaxValue for usize

Source§

const MAX: Self = usize::MAX

Implementors§