Trait packable::bounded::Bounded

source ·
pub trait Bounded: TryFrom<usize> + Into<Self::Bounds> {
    type Bounds: PartialOrd + TryInto<Self> + TryInto<usize> + Default + Copy;
}
Expand description

Trait that provides an interface for bounded types.

Required Associated Types§

source

type Bounds: PartialOrd + TryInto<Self> + TryInto<usize> + Default + Copy

The type used to define the bounds.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl Bounded for u8

§

type Bounds = u8

source§

impl Bounded for u16

§

type Bounds = u16

source§

impl Bounded for u32

§

type Bounds = u32

source§

impl Bounded for u64

§

type Bounds = u64

Implementors§

source§

impl<const MIN: u8, const MAX: u8> Bounded for BoundedU8<MIN, MAX>

§

type Bounds = u8

source§

impl<const MIN: u16, const MAX: u16> Bounded for BoundedU16<MIN, MAX>

§

type Bounds = u16

source§

impl<const MIN: u32, const MAX: u32> Bounded for BoundedU32<MIN, MAX>

§

type Bounds = u32

source§

impl<const MIN: u64, const MAX: u64> Bounded for BoundedU64<MIN, MAX>

§

type Bounds = u64