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

pub enum Turn {
    Place {
        point: Point,
        stone: Stone,
    },
    Slide {
        num_pieces: usize,
        point: Point,
        direction: Direction,
        drops: Vec<usize>,
    },
}

Variants

Place

Fields

point: Point
stone: Stone
Slide

Fields

num_pieces: usize
point: Point
direction: Direction
drops: Vec<usize>

Trait Implementations

impl Encodable for Turn
[src]

fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>

impl Decodable for Turn
[src]

fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Turn, __D::Error>

impl Eq for Turn
[src]

impl PartialEq for Turn
[src]

fn eq(&self, __arg_0: &Turn) -> bool

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

fn ne(&self, __arg_0: &Turn) -> bool

This method tests for !=.

impl Debug for Turn
[src]

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

Formats the value using the given formatter.

impl Clone for Turn
[src]

fn clone(&self) -> Turn

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl FromStr for Turn
[src]

type Err = TurnErr

The associated error which can be returned from parsing.

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

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