Enum zero_sum::impls::tak::Ply [] [src]

pub enum Ply {
    Place {
        x: usize,
        y: usize,
        piece: Piece,
    },
    Slide {
        x: usize,
        y: usize,
        direction: Direction,
        drops: Vec<u8>,
    },
}

Represents either a piece placement or a slide.

Variants

Placement of a stone in an empty space.

Fields of Place

Slide of a stone or stack of stones already on the board.

Fields of Slide

Methods

impl Ply
[src]

Trait Implementations

impl Clone for Ply
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Ply
[src]

Formats the value using the given formatter.

impl PartialEq for Ply
[src]

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

This method tests for !=.

impl Ply for Ply
[src]

impl Display for Ply
[src]

Formats the value using the given formatter. Read more

impl Hash for Ply
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more