pub struct IdxInc<'n, I: Index = usize> { /* private fields */ }Expand description
Implementations§
Source§impl<'n, I: Index> IdxInc<'n, I>
impl<'n, I: Index> IdxInc<'n, I>
Sourcepub const unsafe fn new_unbound(idx: I) -> Self
pub const unsafe fn new_unbound(idx: I) -> Self
Sourcepub unsafe fn new_unchecked(idx: I, dim: Dim<'n>) -> Self
pub unsafe fn new_unchecked(idx: I, dim: Dim<'n>) -> Self
create new branded value with the same brand as Dim.
§safety
the behavior is undefined unless idx <= dim.
Sourcepub fn new_checked(idx: I, dim: Dim<'n>) -> Self
pub fn new_checked(idx: I, dim: Dim<'n>) -> Self
Source§impl<'n> IdxInc<'n>
impl<'n> IdxInc<'n>
Sourcepub fn to(
self,
upper: IdxInc<'n>,
) -> impl Clone + ExactSizeIterator + DoubleEndedIterator<Item = Idx<'n>>
pub fn to( self, upper: IdxInc<'n>, ) -> impl Clone + ExactSizeIterator + DoubleEndedIterator<Item = Idx<'n>>
returns an iterator over the indices between self and to.
Sourcepub fn range_to(
self,
upper: IdxInc<'n>,
) -> impl Clone + ExactSizeIterator + DoubleEndedIterator<Item = Idx<'n>>
pub fn range_to( self, upper: IdxInc<'n>, ) -> impl Clone + ExactSizeIterator + DoubleEndedIterator<Item = Idx<'n>>
returns an iterator over the indices between self and to.
Trait Implementations§
Source§impl<'n, I: Ord + Index> Ord for IdxInc<'n, I>
impl<'n, I: Ord + Index> Ord for IdxInc<'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: Index> PartialOrd<Dim<'n>> for IdxInc<'n, I>
impl<'n, I: Index> PartialOrd<Dim<'n>> for IdxInc<'n, I>
Source§impl<'n, I: PartialOrd + Index> PartialOrd for IdxInc<'n, I>
impl<'n, I: PartialOrd + Index> PartialOrd for IdxInc<'n, I>
impl<'n, I: Copy + Index> Copy for IdxInc<'n, I>
impl<'n, I: Eq + Index> Eq for IdxInc<'n, I>
impl<'n, I: Index> StructuralPartialEq for IdxInc<'n, I>
Auto Trait Implementations§
impl<'n, I> Freeze for IdxInc<'n, I>where
I: Freeze,
impl<'n, I> RefUnwindSafe for IdxInc<'n, I>where
I: RefUnwindSafe,
impl<'n, I> Send for IdxInc<'n, I>
impl<'n, I> Sync for IdxInc<'n, I>
impl<'n, I> Unpin for IdxInc<'n, I>where
I: Unpin,
impl<'n, I> UnwindSafe for IdxInc<'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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> DistributionExt for Twhere
T: ?Sized,
impl<T> DistributionExt for Twhere
T: ?Sized,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more