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