Struct intrusive_collections::singly_linked_list::Cursor [] [src]

pub struct Cursor<'a, A: Adaptor<Link> + 'a> {
    // some fields omitted
}

A cursor which provides read-only access to a SinglyLinkedList.

Methods

impl<'a, A: Adaptor<Link>> Cursor<'a, A>
[src]

fn is_null(&self) -> bool

Checks if the cursor is currently pointing to the null object.

fn get(&self) -> Option<&'a A::Container>

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.

fn move_next(&mut self)

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.

Trait Implementations

impl<'a, A: Adaptor<Link> + 'a> Clone for Cursor<'a, A>
[src]

fn clone(&self) -> Cursor<'a, A>

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more