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