[][src]Struct myopic_brain::MutBoardImpl

pub struct MutBoardImpl { /* fields omitted */ }

Implementations

impl MutBoardImpl[src]

pub fn constraints_impl(
    &mut self,
    computation_type: MoveComputeType
) -> MoveConstraints
[src]

impl MutBoardImpl[src]

pub fn passive_control_impl(&mut self) -> BitBoard[src]

impl MutBoardImpl[src]

pub fn compute_discoveries(&self) -> RaySet[src]

impl MutBoardImpl[src]

pub fn pinned_set_impl(&mut self) -> RaySet[src]

impl MutBoardImpl[src]

impl MutBoardImpl[src]

pub fn clear_cache(&mut self)[src]

impl MutBoardImpl[src]

Implementation of board evolution/devolution via some given Move instance which is assumed to be legal for this board.

pub fn evolve(&mut self, action: &Move) -> Discards[src]

Public API for evolving a board. All that is required is a reference to a move which is assumed to be legal. The information required to reverse this same move is returned and the board is mutated to the next state.

pub fn devolve(&mut self, action: &Move, discards: Discards)[src]

Public API for devolving a move, the information lost at evolve time is required as an input here to recover the lost state exactly.

impl MutBoardImpl[src]

pub fn compute_moves_impl(
    &mut self,
    computation_type: MoveComputeType
) -> Vec<Move, Global>
[src]

Trait Implementations

impl Clone for MutBoardImpl[src]

impl Debug for MutBoardImpl[src]

impl MutBoard for MutBoardImpl[src]

impl PartialEq<MutBoardImpl> for MutBoardImpl[src]

impl Reflectable for MutBoardImpl[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.