Trait figures::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.

Object Safety§

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

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