Enum tak::turn::Turn [] [src]

pub enum Turn {
    Place {
        point: Point,
        piece: Piece,
    },
    Slide {
        point: Point,
        direction: Direction,
        offsets: Vec<usize>,
    },
}

Variants

Place

Fields

point: Point
piece: Piece
Slide

Fields

point: Point
direction: Direction
offsets: Vec<usize>

Trait Implementations

impl Debug for Turn
[src]

fn fmt(&self, __arg_0: &mut Formatter) -> Result

Formats the value using the given formatter.

impl FromStr for Turn
[src]

type Err = ()

The associated error which can be returned from parsing.

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a string s to return a value of this type. Read more