Struct faer_core::constrained::IdxInclusive
source · pub struct IdxInclusive<'n, I>(/* private fields */);Implementations§
source§impl<'n> IdxInclusive<'n, usize>
impl<'n> IdxInclusive<'n, usize>
pub fn range_to( self, last: Self ) -> impl DoubleEndedIterator<Item = Idx<'n, usize>>
source§impl<'n, I: Index> IdxInclusive<'n, I>
impl<'n, I: Index> IdxInclusive<'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 sx(self) -> !
pub fn zx(self) -> !
Trait Implementations§
source§impl<'n, I: Clone> Clone for IdxInclusive<'n, I>
impl<'n, I: Clone> Clone for IdxInclusive<'n, I>
source§fn clone(&self) -> IdxInclusive<'n, I>
fn clone(&self) -> IdxInclusive<'n, I>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl<I: Debug> Debug for IdxInclusive<'_, I>
impl<I: Debug> Debug for IdxInclusive<'_, I>
source§impl<I> Deref for IdxInclusive<'_, I>
impl<I> Deref for IdxInclusive<'_, I>
source§impl<'n, I: Ord> Ord for IdxInclusive<'n, I>
impl<'n, I: Ord> Ord for IdxInclusive<'n, I>
source§fn cmp(&self, other: &IdxInclusive<'n, I>) -> Ordering
fn cmp(&self, other: &IdxInclusive<'n, I>) -> Ordering
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 IdxInclusive<'n, I>
impl<'n, I: PartialEq> PartialEq for IdxInclusive<'n, I>
source§fn eq(&self, other: &IdxInclusive<'n, I>) -> bool
fn eq(&self, other: &IdxInclusive<'n, I>) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl<'n, I: PartialOrd> PartialOrd for IdxInclusive<'n, I>
impl<'n, I: PartialOrd> PartialOrd for IdxInclusive<'n, I>
source§fn partial_cmp(&self, other: &IdxInclusive<'n, I>) -> Option<Ordering>
fn partial_cmp(&self, other: &IdxInclusive<'n, I>) -> Option<Ordering>
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 IdxInclusive<'n, I>
impl<'n, I: Eq> Eq for IdxInclusive<'n, I>
impl<'n, I> StructuralEq for IdxInclusive<'n, I>
impl<'n, I> StructuralPartialEq for IdxInclusive<'n, I>
Auto Trait Implementations§
impl<'n, I> RefUnwindSafe for IdxInclusive<'n, I>where I: RefUnwindSafe,
impl<'n, I> Send for IdxInclusive<'n, I>where I: Send,
impl<'n, I> Sync for IdxInclusive<'n, I>where I: Sync,
impl<'n, I> Unpin for IdxInclusive<'n, I>where I: Unpin,
impl<'n, I> UnwindSafe for IdxInclusive<'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