Bounded

Trait Bounded 

Source
pub trait Bounded: 'static + Sized {
    const MINIMUM: &'static Option<Self>;
    const MAXIMUM: &'static Option<Self>;
    const POSITIVE_MINIMUM: &'static Self;
}

Required Associated Constants§

Source

const MINIMUM: &'static Option<Self>

Source

const MAXIMUM: &'static Option<Self>

Source

const POSITIVE_MINIMUM: &'static Self

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

Source§

const MINIMUM: &'static Option<bool>

Source§

const MAXIMUM: &'static Option<bool>

Source§

const POSITIVE_MINIMUM: &'static Self

Source§

impl Bounded for f32

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self

Source§

impl Bounded for f64

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self

Source§

impl Bounded for i8

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for i16

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for i32

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for i64

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for i128

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for isize

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for u8

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for u16

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for u32

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for u64

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for u128

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Source§

impl Bounded for usize

Source§

const MINIMUM: &'static Option<Self>

Source§

const MAXIMUM: &'static Option<Self>

Source§

const POSITIVE_MINIMUM: &'static Self = Self::ONE

Implementors§