Crate endgame_direction

Crate endgame_direction 

Source
Expand description

A simple implementation of cardinal and ordinal directions, as the canonical direction crate bakes in some notions of coordinates that seem better separated to allow for different grid systems.

Structs§

DirectionSet
A structure representing a set of directions. Conveniently, this crate’s Direction type only models eight possible directions, so it is possible to efficiently represent a set of directions as bitset with just a single byte.
DirectionSetIter
An iterator for visiting all directions in a DirectionSet.

Enums§

Direction
An enumeration of compass directions. The traditional “cardinal” directions, along with the “ordinal” ones as well.