[][src]Enum myopic_board::Termination

pub enum Termination {
    Draw,
    Loss,
}

Represents the possible ways a game can be terminated, we only consider a game to be terminated when a side has no legal moves to make or if a special draw condition is met like position repetition. If a side has no legal moves and is currently in check then the game is lost, if it is not in check then the game is drawn.

Variants

Draw
Loss

Trait Implementations

impl Clone for Termination[src]

impl Copy for Termination[src]

impl Debug for Termination[src]

impl Eq for Termination[src]

impl Hash for Termination[src]

impl Ord for Termination[src]

impl PartialEq<Termination> for Termination[src]

impl PartialOrd<Termination> for Termination[src]

impl StructuralEq for Termination[src]

impl StructuralPartialEq for Termination[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.