[−][src]Struct chess_move_gen::MoveCounter
MoveCounter implements MoveList and keeps a count of different types of moves added to it.
Fields
moves: u64
captures: u64
castles: u64
promotions: u32
ep_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.
pub fn add(self, other: MoveCounter) -> MoveCounter
[src]
impl AddAssign<MoveCounter> for MoveCounter
[src]
pub fn add_assign(&mut self, other: MoveCounter)
[src]
impl Clone for MoveCounter
[src]
pub fn clone(&self) -> MoveCounter
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Copy for MoveCounter
[src]
impl Debug for MoveCounter
[src]
impl MoveList for MoveCounter
[src]
pub fn add_captures(&mut self, _: Square, targets: BB)
[src]
pub fn add_non_captures(&mut self, _: Square, targets: BB)
[src]
pub fn add_castle(&mut self, _: Castle)
[src]
pub fn add_pawn_ep_capture(&mut self, _: Square, _: Square)
[src]
pub fn add_pawn_pushes(&mut self, _: usize, targets: BB)
[src]
pub fn add_pawn_captures(&mut self, _: usize, targets: BB)
[src]
impl PartialEq<MoveCounter> for MoveCounter
[src]
pub fn eq(&self, other: &MoveCounter) -> bool
[src]
pub fn ne(&self, other: &MoveCounter) -> bool
[src]
impl StructuralPartialEq for MoveCounter
[src]
Auto Trait Implementations
impl RefUnwindSafe for MoveCounter
impl Send for MoveCounter
impl Sync for MoveCounter
impl Unpin for MoveCounter
impl UnwindSafe for MoveCounter
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> Cast<U> for T where
U: FromCast<T>,
[src]
U: FromCast<T>,
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]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,