pub struct StandardBoard<T, CI, I>{ /* private fields */ }
Implementations§
Source§impl<T, CI, I> StandardBoard<T, CI, I>
impl<T, CI, I> StandardBoard<T, CI, I>
pub fn new( space_manager: Box<dyn BoardSpaceManager<CI, I, IntoIter<CI>>>, neighbor_manager: Box<dyn BoardNeighborManager<CI, I>>, state_manager: Box<dyn BoardStateManager<T, CI, IntoIter<IndexedDataOwned<CI, T>>>>, strategy_manager: Box<dyn BoardStrategyManager<CI, T, IntoIter<IndexedDataOwned<CI, T>>>>, callbacks: Vec<BoardCallback<T, CI, IntoIter<IndexedDataOwned<CI, T>>>>, ) -> Self
Trait Implementations§
Source§impl<T, CI, I> Board<T, CI, I> for StandardBoard<T, CI, I>
impl<T, CI, I> Board<T, CI, I> for StandardBoard<T, CI, I>
fn space_manager(&self) -> &dyn BoardSpaceManager<CI, I, IntoIter<CI>>
fn neighbor_manager(&self) -> &dyn BoardNeighborManager<CI, I>
fn state_manager( &self, ) -> &dyn BoardStateManager<T, CI, IntoIter<IndexedDataOwned<CI, T>>>
fn state_manager_mut( &mut self, ) -> &mut dyn BoardStateManager<T, CI, IntoIter<IndexedDataOwned<CI, T>>>
fn strategy_manager( &self, ) -> &dyn BoardStrategyManager<CI, T, IntoIter<IndexedDataOwned<CI, T>>>
fn callback_manager( &mut self, ) -> &mut BoardCallbackManager<T, CI, IntoIter<IndexedDataOwned<CI, T>>>
fn advance(&mut self, max_iter: Option<usize>)
fn advance_one_generation(&mut self) -> Vec<IndexedDataOwned<CI, T>> ⓘ
Auto Trait Implementations§
impl<T, CI, I> Freeze for StandardBoard<T, CI, I>
impl<T, CI, I> !RefUnwindSafe for StandardBoard<T, CI, I>
impl<T, CI, I> Send for StandardBoard<T, CI, I>
impl<T, CI, I> Sync for StandardBoard<T, CI, I>
impl<T, CI, I> Unpin for StandardBoard<T, CI, I>
impl<T, CI, I> !UnwindSafe for StandardBoard<T, CI, I>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more