pub struct Cursor<'a, T> { /* private fields */ }
Expand description

A cursor over a LinkedList with editing operations.

In contrast to an iterator a cursor can move from front to back and take an element out of the list.

Implementations

Get reference to value of node if there is any

Get mutable reference to value of node if there is any

Move cursor to the next node

Take the current node if there is one. Also moves the cursor before removing a node.

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.