Enum planetkit::movement::TurnDir [] [src]

pub enum TurnDir {
    Left,
    Right,
}

Variants

Methods

impl TurnDir
[src]

[src]

[src]

Turn one unit left or right.

Note that this does not turn from one hexagon edge to another, but from an edge to a vertex, or vice versa.

Note also that this can not rebase on another root quad; the direction faced will not necessarily be the canonical representation of that direction.

[src]

Turn two units left or right.

This turns from one hexagon edge to another, or one hexagon vertex to another.

Note that this can not rebase on another root quad; the direction faced will not necessarily be the canonical representation of that direction.

Trait Implementations

impl Clone for TurnDir
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Copy for TurnDir
[src]

impl Debug for TurnDir
[src]

[src]

Formats the value using the given formatter.

impl Eq for TurnDir
[src]

impl PartialEq for TurnDir
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.