Struct intrusive_collections::rbtree::Cursor [] [src]

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

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

Methods

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

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

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.

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.

Trait Implementations

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more