Trait ElementLimits

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

Element ordering trait.

Required Associated Constants§

Source

const MIN: Self

The minimum representable value

Source

const MAX: Self

The maximum representable value

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 ElementLimits for bool

Source§

const MIN: bool = false

Source§

const MAX: bool = true

Source§

impl ElementLimits for f32

Source§

const MIN: f32 = -3.40282347E+38f32

Source§

const MAX: f32 = 3.40282347E+38f32

Source§

impl ElementLimits for f64

Source§

const MIN: f64 = -1.7976931348623157E+308f64

Source§

const MAX: f64 = 1.7976931348623157E+308f64

Source§

impl ElementLimits for i8

Source§

const MIN: i8 = -128i8

Source§

const MAX: i8 = 127i8

Source§

impl ElementLimits for i16

Source§

const MIN: i16 = -32_768i16

Source§

const MAX: i16 = 32_767i16

Source§

impl ElementLimits for i32

Source§

const MIN: i32 = -2_147_483_648i32

Source§

const MAX: i32 = 2_147_483_647i32

Source§

impl ElementLimits for i64

Source§

const MIN: i64 = -9_223_372_036_854_775_808i64

Source§

const MAX: i64 = 9_223_372_036_854_775_807i64

Source§

impl ElementLimits for u8

Source§

const MIN: u8 = 0u8

Source§

const MAX: u8 = 255u8

Source§

impl ElementLimits for u16

Source§

const MIN: u16 = 0u16

Source§

const MAX: u16 = 65_535u16

Source§

impl ElementLimits for u32

Source§

const MIN: u32 = 0u32

Source§

const MAX: u32 = 4_294_967_295u32

Source§

impl ElementLimits for u64

Source§

const MIN: u64 = 0u64

Source§

const MAX: u64 = 18_446_744_073_709_551_615u64

Implementors§

Source§

impl ElementLimits for bf16

Source§

const MIN: bf16 = bf16::MIN

Source§

const MAX: bf16 = bf16::MAX

Source§

impl ElementLimits for f16

Source§

const MIN: f16 = f16::MIN

Source§

const MAX: f16 = f16::MAX