Skip to main content

Ranged

Trait Ranged 

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

A type that has a minimum and a maximum.

Required Associated Constants§

Source

const MIN: Self

The minimum value for this type.

Source

const MAX: 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 Ranged for bool

Source§

const MAX: Self = true

Source§

const MIN: Self = false

Source§

impl Ranged for f32

Source§

const MAX: Self = f32::MAX

Source§

const MIN: Self = f32::MIN

Source§

impl Ranged for f64

Source§

const MAX: Self = f64::MAX

Source§

const MIN: Self = f64::MIN

Source§

impl Ranged for i8

Source§

const MAX: Self = i8::MAX

Source§

const MIN: Self = i8::MIN

Source§

impl Ranged for i16

Source§

const MAX: Self = i16::MAX

Source§

const MIN: Self = i16::MIN

Source§

impl Ranged for i32

Source§

const MAX: Self = i32::MAX

Source§

const MIN: Self = i32::MIN

Source§

impl Ranged for i64

Source§

const MAX: Self = i64::MAX

Source§

const MIN: Self = i64::MIN

Source§

impl Ranged for i128

Source§

const MAX: Self = i128::MAX

Source§

const MIN: Self = i128::MIN

Source§

impl Ranged for isize

Source§

const MAX: Self = isize::MAX

Source§

const MIN: Self = isize::MIN

Source§

impl Ranged for u8

Source§

const MAX: Self = u8::MAX

Source§

const MIN: Self = u8::MIN

Source§

impl Ranged for u16

Source§

const MAX: Self = u16::MAX

Source§

const MIN: Self = u16::MIN

Source§

impl Ranged for u32

Source§

const MAX: Self = u32::MAX

Source§

const MIN: Self = u32::MIN

Source§

impl Ranged for u64

Source§

const MAX: Self = u64::MAX

Source§

const MIN: Self = u64::MIN

Source§

impl Ranged for u128

Source§

const MAX: Self = u128::MAX

Source§

const MIN: Self = u128::MIN

Source§

impl Ranged for usize

Source§

const MAX: Self = usize::MAX

Source§

const MIN: Self = usize::MIN

Source§

impl Ranged for Duration

Source§

const MAX: Self = Duration::MAX

Source§

const MIN: Self = Duration::ZERO

Implementors§

Source§

impl Ranged for Angle

Source§

const MAX: Self

Source§

const MIN: Self = Self::ZERO

Source§

impl Ranged for Lp

Source§

const MAX: Self = Lp::MAX

Source§

const MIN: Self = Lp::MIN

Source§

impl Ranged for Px

Source§

const MAX: Self = Px::MAX

Source§

const MIN: Self = Px::MIN

Source§

impl Ranged for UPx

Source§

const MAX: Self = UPx::MAX

Source§

const MIN: Self = UPx::MIN

Source§

impl<Unit> Ranged for Point<Unit>
where Unit: Ranged,

Source§

const MAX: Self

Source§

const MIN: Self

Source§

impl<Unit> Ranged for Rect<Unit>
where Unit: Ranged,

Source§

const MAX: Self

Source§

const MIN: Self

Source§

impl<Unit> Ranged for Size<Unit>
where Unit: Ranged,

Source§

const MAX: Self

Source§

const MIN: Self