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