Struct nmm_lib::GameMove [−][src]
pub struct GameMove { /* fields omitted */ }Methods
impl GameMove[src]
impl GameMovepub fn new(
player: Player,
from: Location,
to: Location,
remove: Option<Location>
) -> GameMove[src]
pub fn new(
player: Player,
from: Location,
to: Location,
remove: Option<Location>
) -> GameMovepub fn get_player(&self) -> Player[src]
pub fn get_player(&self) -> Playerpub fn get_from(&self) -> Location[src]
pub fn get_from(&self) -> Locationpub fn get_to(&self) -> Location[src]
pub fn get_to(&self) -> Locationpub fn get_remove(&self) -> Option<Location>[src]
pub fn get_remove(&self) -> Option<Location>Trait Implementations
impl PartialEq for GameMove[src]
impl PartialEq for GameMovefn eq(&self, other: &GameMove) -> bool[src]
fn eq(&self, other: &GameMove) -> boolThis method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, other: &GameMove) -> bool[src]
fn ne(&self, other: &GameMove) -> boolThis method tests for !=.
impl Debug for GameMove[src]
impl Debug for GameMovefn fmt(&self, f: &mut Formatter) -> Result[src]
fn fmt(&self, f: &mut Formatter) -> ResultFormats the value using the given formatter. Read more
impl Clone for GameMove[src]
impl Clone for GameMove