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 = 127i8

Source§

impl MaxValue for i16

Source§

const MAX: Self = 32_767i16

Source§

impl MaxValue for i32

Source§

const MAX: Self = 2_147_483_647i32

Source§

impl MaxValue for i64

Source§

const MAX: Self = 9_223_372_036_854_775_807i64

Source§

impl MaxValue for i128

Source§

const MAX: Self = 170_141_183_460_469_231_731_687_303_715_884_105_727i128

Source§

impl MaxValue for isize

Source§

const MAX: Self = 9_223_372_036_854_775_807isize

Source§

impl MaxValue for u8

Source§

const MAX: Self = 255u8

Source§

impl MaxValue for u16

Source§

const MAX: Self = 65_535u16

Source§

impl MaxValue for u32

Source§

const MAX: Self = 4_294_967_295u32

Source§

impl MaxValue for u64

Source§

const MAX: Self = 18_446_744_073_709_551_615u64

Source§

impl MaxValue for u128

Source§

const MAX: Self = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

Source§

impl MaxValue for usize

Source§

const MAX: Self = 18_446_744_073_709_551_615usize

Implementors§