pub struct DepthFirst { /* private fields */ }
Expand description

Algorithm driving the resolution of a crate::Maze traversing it as a common graph in a depth-first fashion. Stores the current path and possible branches in a stack.

Implementations

constructor.

Trait Implementations

will be called on each step of the traversal of the [Maze]. insight is a view on the position discovered on the previous movement. ctx is a view on the [Maze], useful for accessing properties of the maze. 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.