[][src]Struct chess_engine::Square

pub struct Square { /* fields omitted */ }

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]

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]

impl PartialEq<Square> for Square[src]

impl PartialOrd<Square> for Square[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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.