pub enum TreeLocation<Q> {
Root,
At(Q),
Leftmost,
Rightmost,
LowerBound(Bound<Q>),
UpperBound(Bound<Q>),
}Expand description
It is used to specify the location of the node in the tree where the cursor should be initially positioned.
Variants§
Root
Root of the tree
At(Q)
Position at a specific key
Leftmost
The cursor will be positioned at the leftmost (minimum) node in the tree.
Rightmost
Rightmost (maximum) node in the tree.
LowerBound(Bound<Q>)
The cursor will be positioned at the first node whose key is greater than (or equal) to the given key depending on the bound type.
UpperBound(Bound<Q>)
The cursor will be positioned at the first node whose key is less than (or equal) to the given key depending on the bound type.
Trait Implementations§
Source§impl<Q: Clone> Clone for TreeLocation<Q>
impl<Q: Clone> Clone for TreeLocation<Q>
Source§fn clone(&self) -> TreeLocation<Q>
fn clone(&self) -> TreeLocation<Q>
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<Q: Copy> Copy for TreeLocation<Q>
Source§impl<Q: Debug> Debug for TreeLocation<Q>
impl<Q: Debug> Debug for TreeLocation<Q>
impl<Q: Eq> Eq for TreeLocation<Q>
Source§impl<Q: PartialEq> PartialEq for TreeLocation<Q>
impl<Q: PartialEq> PartialEq for TreeLocation<Q>
impl<Q: PartialEq> StructuralPartialEq for TreeLocation<Q>
Auto Trait Implementations§
impl<Q> Freeze for TreeLocation<Q>where
Q: Freeze,
impl<Q> RefUnwindSafe for TreeLocation<Q>where
Q: RefUnwindSafe,
impl<Q> Send for TreeLocation<Q>where
Q: Send,
impl<Q> Sync for TreeLocation<Q>where
Q: Sync,
impl<Q> Unpin for TreeLocation<Q>where
Q: Unpin,
impl<Q> UnsafeUnpin for TreeLocation<Q>where
Q: UnsafeUnpin,
impl<Q> UnwindSafe for TreeLocation<Q>where
Q: 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