Skip to main content

ElementLimits

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 = f32::MIN

Source§

const MAX: f32 = f32::MAX

Source§

impl ElementLimits for f64

Source§

const MIN: f64 = f64::MIN

Source§

const MAX: f64 = f64::MAX

Source§

impl ElementLimits for i8

Source§

const MIN: i8 = i8::MIN

Source§

const MAX: i8 = i8::MAX

Source§

impl ElementLimits for i16

Source§

const MIN: i16 = i16::MIN

Source§

const MAX: i16 = i16::MAX

Source§

impl ElementLimits for i32

Source§

const MIN: i32 = i32::MIN

Source§

const MAX: i32 = i32::MAX

Source§

impl ElementLimits for i64

Source§

const MIN: i64 = i64::MIN

Source§

const MAX: i64 = i64::MAX

Source§

impl ElementLimits for u8

Source§

const MIN: u8 = u8::MIN

Source§

const MAX: u8 = u8::MAX

Source§

impl ElementLimits for u16

Source§

const MIN: u16 = u16::MIN

Source§

const MAX: u16 = u16::MAX

Source§

impl ElementLimits for u32

Source§

const MIN: u32 = u32::MIN

Source§

const MAX: u32 = u32::MAX

Source§

impl ElementLimits for u64

Source§

const MIN: u64 = u64::MIN

Source§

const MAX: u64 = u64::MAX

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