Struct shess::Piece[][src]

pub struct Piece<const N: usize> { /* fields omitted */ }

Implementations

impl<const N: usize> Piece<{ N }>[src]

pub fn new(player: i32, id: i32, ty: i32, pos: Point<i32, { N }>) -> Self[src]

pub fn new_with_sub(
    player: i32,
    id: i32,
    sub_id: i32,
    ty: i32,
    pos: Point<i32, { N }>
) -> Self
[src]

Trait Implementations

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

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

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

impl<const N: usize> Default for Piece<N>[src]

Auto Trait Implementations

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

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

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

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

impl<const N: usize> UnwindSafe for Piece<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.