Enum shogi::Move
[−]
[src]
pub enum Move {
Normal {
from: Square,
to: Square,
promote: bool,
},
Drop {
to: Square,
piece_type: PieceType,
},
}Represents a move which either is a normal move or a drop move.
Variants
NormalFields of Normal
from: Square | |
to: Square | |
promote: bool |
DropFields of Drop
to: Square | |
piece_type: PieceType |
Methods
impl Move[src]
Trait Implementations
impl Debug for Move[src]
impl PartialEq for Move[src]
fn eq(&self, __arg_0: &Move) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &Move) -> bool
This method tests for !=.
impl Eq for Move[src]
impl Clone for Move[src]
fn clone(&self) -> Move
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