Struct shess::Game[][src]

pub struct Game<M: Mode, B: Backend> {
    pub mode: M,
    pub backend: B,
    pub players: Vec<Player>,
    pub current_player: (i32, usize),
}

Fields

mode: Mbackend: Bplayers: Vec<Player>current_player: (i32, usize)

Implementations

impl<M: Mode, B: Backend> Game<M, B>[src]

pub fn new() -> Self[src]

pub fn next_move(&mut self)[src]

Trait Implementations

impl<M: Clone + Mode, B: Clone + Backend> Clone for Game<M, B>[src]

impl<M: Debug + Mode, B: Debug + Backend> Debug for Game<M, B>[src]

Auto Trait Implementations

impl<M, B> RefUnwindSafe for Game<M, B> where
    B: RefUnwindSafe,
    M: RefUnwindSafe

impl<M, B> Send for Game<M, B> where
    B: Send,
    M: Send

impl<M, B> Sync for Game<M, B> where
    B: Sync,
    M: Sync

impl<M, B> Unpin for Game<M, B> where
    B: Unpin,
    M: Unpin

impl<M, B> UnwindSafe for Game<M, B> where
    B: UnwindSafe,
    M: UnwindSafe

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.