Enum hexe_core::mv::Kind
[−]
[src]
#[repr(u8)]pub enum Kind { Normal, Castle, Promotion, EnPassant, }
A chess piece move kind.
Variants
Normal
Normal move.
Castle
Castling move.
Promotion
Promotion move.
EnPassant
En passant move.
Trait Implementations
impl PartialEq for Kind
[src]
fn eq(&self, __arg_0: &Kind) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
This method tests for !=
.
impl Eq for Kind
[src]
impl Clone for Kind
[src]
fn clone(&self) -> Kind
[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
impl Copy for Kind
[src]
impl Hash for Kind
[src]
fn hash<__H: Hasher>(&self, __arg_0: &mut __H)
[src]
Feeds this value into the given [Hasher
]. Read more
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
Feeds a slice of this type into the given [Hasher
]. Read more
impl FromUnchecked<u8> for Kind
[src]
unsafe fn from_unchecked(inner: u8) -> Self
[src]
Performs the unchecked conversion.
impl From<u8> for Kind
[src]
impl FromUnchecked<u16> for Kind
[src]
unsafe fn from_unchecked(inner: u16) -> Self
[src]
Performs the unchecked conversion.
impl From<u16> for Kind
[src]
impl FromUnchecked<u32> for Kind
[src]
unsafe fn from_unchecked(inner: u32) -> Self
[src]
Performs the unchecked conversion.
impl From<u32> for Kind
[src]
impl FromUnchecked<u64> for Kind
[src]
unsafe fn from_unchecked(inner: u64) -> Self
[src]
Performs the unchecked conversion.
impl From<u64> for Kind
[src]
impl FromUnchecked<usize> for Kind
[src]
unsafe fn from_unchecked(inner: usize) -> Self
[src]
Performs the unchecked conversion.