GameStateTrait

Trait GameStateTrait 

Source
pub trait GameStateTrait: Clone + Debug {
    // Required methods
    fn status(&self) -> GameStatus;
    fn board(&self) -> &Board;
    fn remaining_mines(&self) -> usize;
}

Required Methods§

Source

fn status(&self) -> GameStatus

Source

fn board(&self) -> &Board

Source

fn remaining_mines(&self) -> usize

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§