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