Crate cardinal_values

Source
Expand description

A tiny library providing support for Cardinal, an enum of the four cardinal directions, and CardinalValues, which is a struct indexed by Cardinal with a value at each direction.

Structs§

CardinalEnumeratedIterator
An enumerated iterator for CardinalValues. This should be constructed with the enumerate method on CardinalIterator.
CardinalIterator
An iterator over a CardinalValues.
CardinalValues
A struct which a value assigned to each cardinal. This can be used as a shorthand for accessing arrays.

Enums§

Cardinal
An enumerator for the simple cardinal directions.