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