Struct hexe_core::mv::kind::Normal
[−]
[src]
pub struct Normal(_);
A normal, non-special move.
Methods
impl Normal
[src]
pub fn new(src: Square, dst: Square) -> Normal
[src]
Creates a new normal move from src
to dst
.
pub fn kind(self) -> Kind
[src]
Returns the kind for self
.
Methods from Deref<Target = Move>
Trait Implementations
impl From<Normal> for Move
[src]
impl From<Normal> for u16
[src]
impl FromUnchecked<Move> for Normal
[src]
unsafe fn from_unchecked(mv: Move) -> Normal
[src]
Performs the unchecked conversion.
impl FromUnchecked<u16> for Normal
[src]
unsafe fn from_unchecked(bits: u16) -> Normal
[src]
Performs the unchecked conversion.
impl Deref for Normal
[src]
type Target = Move
The resulting type after dereferencing.
fn deref(&self) -> &Move
[src]
Dereferences the value.
impl AsRef<Move> for Normal
[src]
impl PartialEq for Normal
[src]
fn eq(&self, __arg_0: &Normal) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Normal) -> bool
[src]
This method tests for !=
.
impl Eq for Normal
[src]
impl Clone for Normal
[src]
fn clone(&self) -> Normal
[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 Normal
[src]
impl Hash for Normal
[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 Debug for Normal
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more