[−][src]Struct chess_engine::Square
Essentially a container for a single piece on a board.
Implementations
impl Square[src]
pub fn is_empty(&self) -> bool[src]
Does this square contain a piece?
pub fn get_piece(&self) -> Option<Piece>[src]
Get the piece contained in this square.
Trait Implementations
impl Clone for Square[src]
fn clone(&self) -> Square[src]
pub fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for Square[src]
impl Debug for Square[src]
impl Eq for Square[src]
impl From<Piece> for Square[src]
impl Ord for Square[src]
fn cmp(&self, other: &Square) -> Ordering[src]
#[must_use]pub fn max(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn min(self, other: Self) -> Self1.21.0[src]
#[must_use]pub fn clamp(self, min: Self, max: Self) -> Self1.50.0[src]
impl PartialEq<Square> for Square[src]
impl PartialOrd<Square> for Square[src]
fn partial_cmp(&self, other: &Square) -> Option<Ordering>[src]
fn lt(&self, other: &Square) -> bool[src]
fn le(&self, other: &Square) -> bool[src]
fn gt(&self, other: &Square) -> bool[src]
fn ge(&self, other: &Square) -> bool[src]
impl StructuralEq for Square[src]
impl StructuralPartialEq for Square[src]
Auto Trait Implementations
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,
pub 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.
pub fn to_owned(&self) -> T[src]
pub 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.
pub 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>,