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 of Place
point: Point | |
stone: Stone |
Slide
Fields of Slide
num_pieces: usize | |
point: Point | |
direction: Direction | |
drops: Vec<usize> |
Trait Implementations
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 Debug 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 Eq for Turn
[src]
impl Decodable for Turn
[src]
fn decode<__D: Decoder>(__arg_0: &mut __D) -> Result<Turn, __D::Error>
Deserialize a value using a Decoder
.
impl Encodable for Turn
[src]
fn encode<__S: Encoder>(&self, __arg_0: &mut __S) -> Result<(), __S::Error>
Serialize a value using an Encoder
.
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