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