pub struct IdxIncOne<I: Index = usize> { /* private fields */ }Expand description
index equal to zero ro one
Trait Implementations§
Source§impl<I: Ord + Index> Ord for IdxIncOne<I>
impl<I: Ord + Index> Ord for IdxIncOne<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 PartialOrd<One> for IdxIncOne
impl PartialOrd<One> for IdxIncOne
Source§impl<I: PartialOrd + Index> PartialOrd for IdxIncOne<I>
impl<I: PartialOrd + Index> PartialOrd for IdxIncOne<I>
impl<I: Copy + Index> Copy for IdxIncOne<I>
impl<I: Eq + Index> Eq for IdxIncOne<I>
impl<I: Index> StructuralPartialEq for IdxIncOne<I>
Auto Trait Implementations§
impl<I> Freeze for IdxIncOne<I>where
I: Freeze,
impl<I> RefUnwindSafe for IdxIncOne<I>where
I: RefUnwindSafe,
impl<I> Send for IdxIncOne<I>
impl<I> Sync for IdxIncOne<I>
impl<I> Unpin for IdxIncOne<I>where
I: Unpin,
impl<I> UnwindSafe for IdxIncOne<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