Enum hexe_core::mv::Matches
[−]
[src]
pub enum Matches { Normal(Normal), Castle(Castle), Promotion(Promotion), EnPassant(EnPassant), }
A match
-able inner representation Move
.
Variants
Normal(Normal)
Normal move.
Castle(Castle)
Castling move.
Promotion(Promotion)
Promotion move.
EnPassant(EnPassant)
En passant move.
Methods
impl Matches
[src]
pub fn normal(self) -> Option<Normal>
[src]
Returns the inner Normal
match.
pub fn castle(self) -> Option<Castle>
[src]
Returns the inner Castle
match.
pub fn promotion(self) -> Option<Promotion>
[src]
Returns the inner Promotion
match.
pub fn en_passant(self) -> Option<EnPassant>
[src]
Returns the inner EnPassant
match.
Trait Implementations
impl Copy for Matches
[src]
impl Clone for Matches
[src]
fn clone(&self) -> Matches
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more