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

Cursor over the tree elements.

If a move operation fails we Return a result with:

  • Ok: the moved cursor
  • Err: the previous unmodified cursor

Implementations

Move the cursor to the parent

Errors

If there is no next node will return the previous position

Move the cursor to the first child

Errors

If there is no next node will return the previous position

Move the cursor to the last child

Errors

If there is no next node will return the previous position

Move the cursor to the next sibling

Errors

If there is no next node will return the previous position

Move the cursor to the prev sibling

Errors

If there is no next node will return the previous position

Move the cursor to the next node

Errors

If there is no next node will return the previous position

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.