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