Enum hexe_core::castle::Side
[−]
[src]
#[repr(u8)]pub enum Side { King, Queen, }
A side used to castle.
Variants
King
King castling side (O-O).
Queen
Queen castling side (O-O-O).
Trait Implementations
impl Not for Side
[src]
type Output = Side
The resulting type after applying the !
operator.
fn not(self) -> Side
[src]
Performs the unary !
operation.
impl PartialEq for Side
[src]
fn eq(&self, __arg_0: &Side) -> 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 Side
[src]
impl Clone for Side
[src]
fn clone(&self) -> Side
[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 Side
[src]
impl Debug for Side
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Hash for Side
[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 Side
[src]
unsafe fn from_unchecked(inner: u8) -> Self
[src]
Performs the unchecked conversion.
impl From<u8> for Side
[src]
impl FromUnchecked<u16> for Side
[src]
unsafe fn from_unchecked(inner: u16) -> Self
[src]
Performs the unchecked conversion.
impl From<u16> for Side
[src]
impl FromUnchecked<u32> for Side
[src]
unsafe fn from_unchecked(inner: u32) -> Self
[src]
Performs the unchecked conversion.
impl From<u32> for Side
[src]
impl FromUnchecked<u64> for Side
[src]
unsafe fn from_unchecked(inner: u64) -> Self
[src]
Performs the unchecked conversion.
impl From<u64> for Side
[src]
impl FromUnchecked<usize> for Side
[src]
unsafe fn from_unchecked(inner: usize) -> Self
[src]
Performs the unchecked conversion.