figures

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 = 3.40282347E+38f32

Source§

const MIN: Self = -3.40282347E+38f32

Source§

impl Ranged for f64

Source§

const MAX: Self = 1.7976931348623157E+308f64

Source§

const MIN: Self = -1.7976931348623157E+308f64

Source§

impl Ranged for i8

Source§

const MAX: Self = 127i8

Source§

const MIN: Self = -128i8

Source§

impl Ranged for i16

Source§

const MAX: Self = 32_767i16

Source§

const MIN: Self = -32_768i16

Source§

impl Ranged for i32

Source§

const MAX: Self = 2_147_483_647i32

Source§

const MIN: Self = -2_147_483_648i32

Source§

impl Ranged for i64

Source§

const MAX: Self = 9_223_372_036_854_775_807i64

Source§

const MIN: Self = -9_223_372_036_854_775_808i64

Source§

impl Ranged for i128

Source§

const MAX: Self = 170_141_183_460_469_231_731_687_303_715_884_105_727i128

Source§

const MIN: Self = -170_141_183_460_469_231_731_687_303_715_884_105_728i128

Source§

impl Ranged for isize

Source§

const MAX: Self = 9_223_372_036_854_775_807isize

Source§

const MIN: Self = -9_223_372_036_854_775_808isize

Source§

impl Ranged for u8

Source§

const MAX: Self = 255u8

Source§

const MIN: Self = 0u8

Source§

impl Ranged for u16

Source§

const MAX: Self = 65_535u16

Source§

const MIN: Self = 0u16

Source§

impl Ranged for u32

Source§

const MAX: Self = 4_294_967_295u32

Source§

const MIN: Self = 0u32

Source§

impl Ranged for u64

Source§

const MAX: Self = 18_446_744_073_709_551_615u64

Source§

const MIN: Self = 0u64

Source§

impl Ranged for u128

Source§

const MAX: Self = 340_282_366_920_938_463_463_374_607_431_768_211_455u128

Source§

const MIN: Self = 0u128

Source§

impl Ranged for usize

Source§

const MAX: Self = 18_446_744_073_709_551_615usize

Source§

const MIN: Self = 0usize

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 = _