pub struct RangeU8<const MIN: u8, const MAX: u8>(/* private fields */);
Expand description
Represents ranged type over a bounded range of values.
Implementations§
Source§impl<const MIN: u8, const MAX: u8> RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> RangeU8<MIN, MAX>
Sourcepub const fn try_from_inner(val: u8) -> Result<Self>
pub const fn try_from_inner(val: u8) -> Result<Self>
Attempts to convert a raw index value into a RangeU8.
Sourcepub const fn try_from_unchecked(val: u8) -> Self
pub const fn try_from_unchecked(val: u8) -> Self
Sourcepub const fn into_inner(self) -> u8
pub const fn into_inner(self) -> u8
Converts a RangeU8 into a raw index value.
Trait Implementations§
impl<const MIN: u8, const MAX: u8> Copy for RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Eq for RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> StructuralPartialEq for RangeU8<MIN, MAX>
Auto Trait Implementations§
impl<const MIN: u8, const MAX: u8> Freeze for RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> RefUnwindSafe for RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Send for RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Sync for RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> Unpin for RangeU8<MIN, MAX>
impl<const MIN: u8, const MAX: u8> UnwindSafe for RangeU8<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