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