Struct faer_core::constrained::Idx
source · pub struct Idx<'n, I>(/* private fields */);Implementations§
source§impl<'n, I: Index> Idx<'n, I>
impl<'n, I: Index> Idx<'n, I>
pub fn new_checked(idx: I, size: Size<'n>) -> Self
pub unsafe fn new_unchecked(idx: I, size: Size<'n>) -> Self
pub unsafe fn new_raw_unchecked(idx: I) -> Self
pub fn into_inner(self) -> I
pub fn zx(self) -> Idx<'n, usize>
pub fn sx(self) -> !
pub fn to_inclusive(self) -> IdxInclusive<'n, I>
pub fn next(self) -> IdxInclusive<'n, I>
pub fn from_slice_mut_checked<'a>( slice: &'a mut [I], size: Size<'n> ) -> &'a mut [Idx<'n, I>]
pub unsafe fn from_slice_mut_unchecked<'a>( slice: &'a mut [I] ) -> &'a mut [Idx<'n, I>]
pub fn from_slice_ref_checked<'a>( slice: &'a [I], size: Size<'n> ) -> &'a [Idx<'n, I>]
pub unsafe fn from_slice_ref_unchecked<'a>(slice: &'a [I]) -> &'a [Idx<'n, I>]
Trait Implementations§
source§impl<'n, I: Ord> Ord for Idx<'n, I>
impl<'n, I: Ord> Ord for Idx<'n, I>
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl<'n, I: PartialEq> PartialEq for Idx<'n, I>
impl<'n, I: PartialEq> PartialEq for Idx<'n, I>
source§impl<'n, I: PartialOrd> PartialOrd for Idx<'n, I>
impl<'n, I: PartialOrd> PartialOrd for Idx<'n, I>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl<'n, I: Copy> Copy for Idx<'n, I>
impl<'n, I: Eq> Eq for Idx<'n, I>
impl<'n, I> StructuralEq for Idx<'n, I>
impl<'n, I> StructuralPartialEq for Idx<'n, I>
Auto Trait Implementations§
impl<'n, I> RefUnwindSafe for Idx<'n, I>where I: RefUnwindSafe,
impl<'n, I> Send for Idx<'n, I>where I: Send,
impl<'n, I> Sync for Idx<'n, I>where I: Sync,
impl<'n, I> Unpin for Idx<'n, I>where I: Unpin,
impl<'n, I> UnwindSafe for Idx<'n, I>where I: UnwindSafe,
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