[][src]Struct chess_move_gen::MoveCounter

pub struct MoveCounter {
    pub moves: u64,
    pub captures: u64,
    pub castles: u64,
    pub promotions: u32,
    pub ep_captures: u32,
}

MoveCounter implements MoveList and keeps a count of different types of moves added to it.

Fields

moves: u64captures: u64castles: u64promotions: u32ep_captures: u32

Implementations

impl MoveCounter[src]

pub fn new() -> MoveCounter[src]

Trait Implementations

impl Add<MoveCounter> for MoveCounter[src]

type Output = Self

The resulting type after applying the + operator.

impl AddAssign<MoveCounter> for MoveCounter[src]

impl Clone for MoveCounter[src]

impl Copy for MoveCounter[src]

impl Debug for MoveCounter[src]

impl MoveList for MoveCounter[src]

impl PartialEq<MoveCounter> for MoveCounter[src]

impl StructuralPartialEq for MoveCounter[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, U> Cast<U> for T where
    U: FromCast<T>, 
[src]

impl<T> From<T> for T[src]

impl<T> FromCast<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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,