[][src]Struct nmm_lib::GameMove

pub struct GameMove { /* fields omitted */ }

Implementations

impl GameMove[src]

pub fn new(
    player: Player,
    from: Location,
    to: Location,
    remove: Option<Location>
) -> GameMove
[src]

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

pub fn get_from(&self) -> Location[src]

pub fn get_to(&self) -> Location[src]

pub fn get_remove(&self) -> Option<Location>[src]

Trait Implementations

impl Clone for GameMove[src]

impl Debug for GameMove[src]

impl PartialEq<GameMove> for GameMove[src]

impl StructuralPartialEq for GameMove[src]

Auto Trait Implementations

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.