pub struct StandardBoardFactory {}Implementations§
Source§impl StandardBoardFactory
impl StandardBoardFactory
pub fn new_standard_nd_grid<T, U, S, I>(
shape: I,
default_state: T,
neighbor_margin: S,
initial_states: HashMap<GridPointND<U>, T>,
strategy: Box<dyn EvolutionStrategy<GridPointND<U>, T, IntoIter<IndexedDataOwned<GridPointND<U>, T>>>>,
callbacks: Vec<BoardCallback<T, GridPointND<U>, IntoIter<IndexedDataOwned<GridPointND<U>, T>>>>,
is_donut: bool,
) -> StandardBoard<T, GridPointND<U>, IntoIter<GridPointND<U>>>where
T: 'static + Send + Sync + Clone + PartialEq,
U: 'static + Hash + PrimInt + CheckedDiv + TryFrom<S> + PointPrimInt,
S: 'static + FromPrimitive + MarginPrimInt,
I: Iterator<Item = S>,
pub fn new_standard_3d_grid<T, U, S>(
shape: (S, S, S),
default_state: T,
neighbor_margin: S,
initial_states: HashMap<GridPoint3D<U>, T>,
strategy: Box<dyn EvolutionStrategy<GridPoint3D<U>, T, IntoIter<IndexedDataOwned<GridPoint3D<U>, T>>>>,
callbacks: Vec<BoardCallback<T, GridPoint3D<U>, IntoIter<IndexedDataOwned<GridPoint3D<U>, T>>>>,
is_donut: bool,
) -> StandardBoard<T, GridPoint3D<U>, IntoIter<GridPoint3D<U>>>where
T: 'static + Send + Sync + Clone + PartialEq,
U: 'static + Hash + PrimInt + CheckedDiv + TryFrom<S> + PointPrimInt,
S: 'static + Unsigned + FromPrimitive + MarginPrimInt,
pub fn new_standard_2d_grid<T, U, S>(
shape: (S, S),
default_state: T,
neighbor_margin: S,
initial_states: HashMap<GridPoint2D<U>, T>,
strategy: Box<dyn EvolutionStrategy<GridPoint2D<U>, T, IntoIter<IndexedDataOwned<GridPoint2D<U>, T>>>>,
callbacks: Vec<BoardCallback<T, GridPoint2D<U>, IntoIter<IndexedDataOwned<GridPoint2D<U>, T>>>>,
is_donut: bool,
) -> StandardBoard<T, GridPoint2D<U>, IntoIter<GridPoint2D<U>>>where
T: 'static + Send + Sync + Clone + PartialEq,
U: 'static + Hash + PrimInt + CheckedDiv + TryFrom<S> + PointPrimInt,
S: 'static + Unsigned + FromPrimitive + MarginPrimInt,
pub fn new_standard_1d_grid<T, U, S>(
shape: S,
default_state: T,
neighbor_margin: S,
initial_states: HashMap<GridPoint1D<U>, T>,
strategy: Box<dyn EvolutionStrategy<GridPoint1D<U>, T, IntoIter<IndexedDataOwned<GridPoint1D<U>, T>>>>,
callbacks: Vec<BoardCallback<T, GridPoint1D<U>, IntoIter<IndexedDataOwned<GridPoint1D<U>, T>>>>,
is_donut: bool,
) -> StandardBoard<T, GridPoint1D<U>, IntoIter<GridPoint1D<U>>>where
T: 'static + Send + Sync + Clone + PartialEq,
U: 'static + Hash + PrimInt + CheckedDiv + TryFrom<S> + PointPrimInt,
S: 'static + Unsigned + FromPrimitive + MarginPrimInt,
Auto Trait Implementations§
impl Freeze for StandardBoardFactory
impl RefUnwindSafe for StandardBoardFactory
impl Send for StandardBoardFactory
impl Sync for StandardBoardFactory
impl Unpin for StandardBoardFactory
impl UnwindSafe for StandardBoardFactory
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