Struct shess::Move[][src]

pub struct Move<const N: usize> {
    pub player_id: i32,
    pub piece_id: i32,
    pub from: Option<Point<i32, { N }>>,
    pub to: Point<i32, { N }>,
}

Fields

player_id: i32piece_id: i32from: Option<Point<i32, { N }>>to: Point<i32, { N }>

Trait Implementations

impl<const N: usize> Clone for Move<N>[src]

impl<const N: usize> Copy for Move<N>[src]

impl<const N: usize> Debug for Move<N>[src]

Auto Trait Implementations

impl<const N: usize> RefUnwindSafe for Move<N>

impl<const N: usize> Send for Move<N>

impl<const N: usize> Sync for Move<N>

impl<const N: usize> Unpin for Move<N>

impl<const N: usize> UnwindSafe for Move<N>

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.