Struct intrusive_collections::linked_list::Cursor [] [src]

pub struct Cursor<'a, A: Adapter<Link = Link> + 'a> { /* fields omitted */ }

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

Methods

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

[src]

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

[src]

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.

[src]

Moves the cursor to the next element of the LinkedList.

If the cursor is pointer to the null object then this will move it to the first element of the LinkedList. If it is pointing to the last element of the LinkedList then this will move it to the null object.

[src]

Moves the cursor to the previous element of the LinkedList.

If the cursor is pointer to the null object then this will move it to the last element of the LinkedList. If it is pointing to the first element of the LinkedList then this will move it to the null object.

[src]

Returns a cursor pointing to the next element of the LinkedList.

If the cursor is pointer to the null object then this will return the first element of the LinkedList. If it is pointing to the last element of the LinkedList then this will return a null cursor.

[src]

Returns a cursor pointing to the previous element of the LinkedList.

If the cursor is pointer to the null object then this will return the last element of the LinkedList. If it is pointing to the first element of the LinkedList then this will return a null cursor.

Trait Implementations

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

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more