pub struct BetweenU8<const MIN: u8, const MAX: u8>(/* private fields */);Implementations§
Trait Implementations§
Source§impl<const MIN: u8, const MAX: u8> Ord for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Ord for BetweenU8<MIN, MAX>
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl<const MIN: u8, const MAX: u8> PartialOrd for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> PartialOrd for BetweenU8<MIN, MAX>
Source§impl<const MIN: u8, const MAX: u8> Sequential for BetweenU8<MIN, MAX>where
u8: Sequential,
impl<const MIN: u8, const MAX: u8> Sequential for BetweenU8<MIN, MAX>where
u8: Sequential,
const CARDINALITY: usize
fn to_index(&self) -> usize
unsafe fn from_index_unchecked(index: usize) -> Self
fn from_index(index: usize) -> Self
fn try_from_index(index: usize) -> Result<Self, IndexOutOfBounds>
impl<const MIN: u8, const MAX: u8> Copy for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Eq for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> StructuralPartialEq for BetweenU8<MIN, MAX>
Auto Trait Implementations§
impl<const MIN: u8, const MAX: u8> Freeze for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> RefUnwindSafe for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Send for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Sync for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Unpin for BetweenU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> UnwindSafe for BetweenU8<MIN, MAX>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more