pub enum KeyPosition<K> {
Start,
At(K),
End,
}Expand description
A position between windows of an ordered key space. No minimum key or successor operation is required.
Variants§
Start
No keys have been visited.
At(K)
The inclusive lower bound on keys still to visit.
End
All keys have been visited.
Trait Implementations§
Source§impl<K: Clone> Clone for KeyPosition<K>
impl<K: Clone> Clone for KeyPosition<K>
Source§fn clone(&self) -> KeyPosition<K>
fn clone(&self) -> KeyPosition<K>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<K: Copy> Copy for KeyPosition<K>
Source§impl<K: Debug> Debug for KeyPosition<K>
impl<K: Debug> Debug for KeyPosition<K>
impl<K: Eq> Eq for KeyPosition<K>
Source§impl<K: Ord> Ord for KeyPosition<K>
impl<K: Ord> Ord for KeyPosition<K>
Source§fn cmp(&self, other: &KeyPosition<K>) -> Ordering
fn cmp(&self, other: &KeyPosition<K>) -> Ordering
1.21.0 (const: unstable) · 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
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl<K: PartialEq> PartialEq for KeyPosition<K>
impl<K: PartialEq> PartialEq for KeyPosition<K>
Source§impl<K: PartialOrd> PartialOrd for KeyPosition<K>
impl<K: PartialOrd> PartialOrd for KeyPosition<K>
impl<K: PartialEq> StructuralPartialEq for KeyPosition<K>
Auto Trait Implementations§
impl<K> Freeze for KeyPosition<K>where
K: Freeze,
impl<K> RefUnwindSafe for KeyPosition<K>where
K: RefUnwindSafe,
impl<K> Send for KeyPosition<K>where
K: Send,
impl<K> Sync for KeyPosition<K>where
K: Sync,
impl<K> Unpin for KeyPosition<K>where
K: Unpin,
impl<K> UnsafeUnpin for KeyPosition<K>where
K: UnsafeUnpin,
impl<K> UnwindSafe for KeyPosition<K>where
K: 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,
impl<T> Data for T
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 moreSource§impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
impl<'a, S, T> Semigroup<&'a S> for Twhere
T: Semigroup<S>,
Source§fn plus_equals(&mut self, rhs: &&'a S)
fn plus_equals(&mut self, rhs: &&'a S)
The method of
std::ops::AddAssign, for types that do not implement AddAssign.