Skip to main content

Max

Trait Max 

Source
pub trait Max {
    const MAX_VALUE: Self;
}
Expand description

Trait for types that have a constant representing the maximum value.

Required Associated Constants§

Source

const MAX_VALUE: Self

The maximum value for this type.

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 Max for i8

Source§

const MAX_VALUE: Self = i8::MAX

Source§

impl Max for i16

Source§

const MAX_VALUE: Self = i16::MAX

Source§

impl Max for i32

Source§

const MAX_VALUE: Self = i32::MAX

Source§

impl Max for i64

Source§

const MAX_VALUE: Self = i64::MAX

Source§

impl Max for i128

Source§

const MAX_VALUE: Self = i128::MAX

Source§

impl Max for isize

Source§

const MAX_VALUE: Self = isize::MAX

Source§

impl Max for u8

Source§

const MAX_VALUE: Self = u8::MAX

Source§

impl Max for u16

Source§

const MAX_VALUE: Self = u16::MAX

Source§

impl Max for u32

Source§

const MAX_VALUE: Self = u32::MAX

Source§

impl Max for u64

Source§

const MAX_VALUE: Self = u64::MAX

Source§

impl Max for u128

Source§

const MAX_VALUE: Self = u128::MAX

Source§

impl Max for usize

Source§

const MAX_VALUE: Self = usize::MAX

Implementors§

Source§

impl Max for U256

Source§

const MAX_VALUE: Self