[−][src]Struct nmm_lib::Game
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
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]
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,
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, 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.
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>,