pub struct Context<'m> { /* private fields */ }
Expand description

A context given to the Algorithm on every progress call, provide informations about the maze and method to create a Guess.

Implementations

Constructor for Guess. Takes a path, that is a vector of positions from the starting point to the position to discover on the next call to progress.

Returns the position of the start of the Maze.

Returns the position of the end of the Maze.

Returns the width of the Maze.

Returns the height of the Maze.

Returns a tuple containing both the width and height of the Maze.

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.