[][src]Struct nmm_lib::Game

pub struct Game { /* fields omitted */ }

Implementations

impl Game[src]

pub fn new() -> Game[src]

pub fn load(serialised_game: &str) -> Result<Game, Error>[src]

pub fn get_json(&self) -> String[src]

pub fn get_pieces(&self) -> Vec<Piece>[src]

pub fn get_turn(&self) -> u8[src]

pub fn get_next_player(&self) -> Player[src]

pub fn get_status(&self) -> GameStatus[src]

pub fn submit(&mut self, game_move: GameMove) -> bool[src]

pub fn is_three_in_a_row(&self, player: Player, new_location: Location) -> bool[src]

Trait Implementations

impl Debug for Game[src]

impl PartialEq<Game> for Game[src]

impl StructuralPartialEq for Game[src]

Auto Trait Implementations

impl RefUnwindSafe for Game

impl Send for Game

impl Sync for Game

impl Unpin for Game

impl UnwindSafe for Game

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, 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.