Enum myopic_board::Side [−][src]
pub enum Side { White, Black, }
Represents the two different teams in a game of chess.
Variants
Implementations
impl Side
[src]
impl Side
[src]pub fn pawn_dir(self) -> Dir
[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]
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]
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_from_rank(self) -> BitBoard
[src]
pub fn pawn_promoting_from_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]
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 Ord for Side
[src]
impl Ord for Side
[src]impl PartialOrd<Side> for Side
[src]
impl PartialOrd<Side> for Side
[src]pub fn partial_cmp(&self, other: &Side) -> Option<Ordering>
[src]
pub fn partial_cmp(&self, other: &Side) -> Option<Ordering>
[src]This method returns an ordering between self
and other
values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than (for self
and other
) and is used by the <
operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool
1.0.0[src]This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for Side
[src]
impl Eq 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> Borrow<T> for T where
T: ?Sized,
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]
pub fn borrow_mut(&mut self) -> &mut Tⓘ
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more