Struct intrusive_collections::rbtree::Cursor [−][src]
Expand description
A cursor which provides read-only access to a RBTree
.
Implementations
Returns a reference to the object that the cursor is currently pointing to.
This returns None
if the cursor is currently pointing to the null
object.
pub fn clone_pointer(&self) -> Option<<A::PointerOps as PointerOps>::Pointer> where
<A::PointerOps as PointerOps>::Pointer: Clone,
pub fn clone_pointer(&self) -> Option<<A::PointerOps as PointerOps>::Pointer> where
<A::PointerOps as PointerOps>::Pointer: Clone,
Clones and returns the pointer that points to the element that the cursor is referencing.
This returns None
if the cursor is currently pointing to the null
object.
Moves the cursor to the next element of the RBTree
.
If the cursor is pointer to the null object then this will move it to
the first element of the RBTree
. If it is pointing to the last
element of the RBTree
then this will move it to the null object.
Moves the cursor to the previous element of the RBTree
.
If the cursor is pointer to the null object then this will move it to
the last element of the RBTree
. If it is pointing to the first
element of the RBTree
then this will move it to the null object.
Returns a cursor pointing to the next element of the RBTree
.
If the cursor is pointer to the null object then this will return the
first element of the RBTree
. If it is pointing to the last
element of the RBTree
then this will return a null cursor.
Trait Implementations
Auto Trait Implementations
impl<'a, A> Send for Cursor<'a, A> where
A: Sync,
<<A as Adapter>::LinkOps as LinkOps>::LinkPtr: Send,
<<A as Adapter>::PointerOps as PointerOps>::Value: Sync,
Blanket Implementations
Mutably borrows from an owned value. Read more