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
PlacePlacement of a stone in an empty space.
Fields of Place
x: usize | |
y: usize | |
piece: Piece |
SlideSlide of a stone or stack of stones already on the board.
Fields of Slide
x: usize | |
y: usize | |
direction: Direction | |
drops: Vec<u8> |
Methods
impl Ply[src]
Trait Implementations
impl Clone for Ply[src]
fn clone(&self) -> Ply
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 Debug for Ply[src]
impl PartialEq for Ply[src]
fn eq(&self, __arg_0: &Ply) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Ply) -> bool
This method tests for !=.