Struct intrusive_collections::xor_linked_list::Cursor [−][src]
pub struct Cursor<'a, A: Adapter> where
A::LinkOps: XorLinkedListOps, { /* fields omitted */ }
Expand description
A cursor which provides read-only access to a XorLinkedList
.
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 XorLinkedList
.
If the cursor is pointer to the null object then this will move it to
the first element of the XorLinkedList
. If it is pointing to the
last element of the XorLinkedList
then this will move it to the
null object.
Moves the cursor to the previous element of the XorLinkedList
.
If the cursor is pointer to the null object then this will move it to
the last element of the XorLinkedList
. If it is pointing to the first
element of the XorLinkedList
then this will move it to the null object.
Returns a cursor pointing to the next element of the XorLinkedList
.
If the cursor is pointer to the null object then this will return the
first element of the XorLinkedList
. If it is pointing to the last
element of the XorLinkedList
then this will return a null cursor.
Returns a cursor pointing to the previous element of the XorLinkedList
.
If the cursor is pointer to the null object then this will return the
last element of the XorLinkedList
. If it is pointing to the first
element of the XorLinkedList
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