[−][src]Enum myopic_core::Side
Represents the two different teams in a game of chess.
Variants
Implementations
impl Side
[src]
pub fn pawn_dir(self) -> Dir
[src]
Get the vertical direction in which a pawn on this side moves (north or south).
pub fn pawn_first_rank(self) -> BitBoard
[src]
Get the rank on which a pawn on this side starts the game.
pub fn pawn_third_rank(self) -> BitBoard
[src]
Get the rank to which a pawn on this side moves to following it's special two rank first move.
pub fn pawn_promoting_src_rank(self) -> BitBoard
[src]
Get the rank a pawn on this side must be on for it to be able to promote on it's next move.
pub fn pawn_promoting_dest_rank(self) -> BitBoard
[src]
The rank a pawn on this side will end up on after promoting to another piece.
Trait Implementations
impl Clone for Side
[src]
impl Copy for Side
[src]
impl Debug for Side
[src]
impl Eq for Side
[src]
impl PartialEq<Side> for Side
[src]
impl PartialOrd<Side> for Side
[src]
fn partial_cmp(&self, other: &Side) -> Option<Ordering>
[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn gt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn ge(&self, other: &Rhs) -> bool
1.0.0[src]
impl Reflectable for Side
[src]
impl StructuralEq for Side
[src]
impl StructuralPartialEq for Side
[src]
Auto Trait Implementations
impl RefUnwindSafe for Side
impl Send for Side
impl Sync for Side
impl Unpin for Side
impl UnwindSafe for Side
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,