[][src]Struct gol_core::board::standard::StandardBoardFactory

pub struct StandardBoardFactory {}

Implementations

impl StandardBoardFactory[src]

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<Box<dyn BoardCallback<T, GridPointND<U>, IntoIter<IndexedDataOwned<GridPointND<U>, T>>>>>
) -> StandardBoard<T, GridPointND<U>, IntoIter<GridPointND<U>>> where
    T: 'static + Send + Sync + Clone + PartialEq,
    U: 'static + Hash + PrimInt + CheckedDiv + TryFrom<S> + PointPrimInt,
    S: 'static + Unsigned + FromPrimitive + MarginPrimInt,
    I: Iterator<Item = S>, 
[src]

pub fn new_standard_3d_grid<T, U, S, I>(
    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<Box<dyn BoardCallback<T, GridPoint3D<U>, IntoIter<IndexedDataOwned<GridPoint3D<U>, T>>>>>
) -> 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,
    I: Iterator<Item = S>, 
[src]

pub fn new_standard_2d_grid<T, U, S, I>(
    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<Box<dyn BoardCallback<T, GridPoint2D<U>, IntoIter<IndexedDataOwned<GridPoint2D<U>, T>>>>>
) -> 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,
    I: Iterator<Item = S>, 
[src]

pub fn new_standard_1d_grid<T, U, S, I>(
    shape: (S, 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<Box<dyn BoardCallback<T, GridPoint1D<U>, IntoIter<IndexedDataOwned<GridPoint1D<U>, T>>>>>
) -> 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,
    I: Iterator<Item = S>, 
[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> Pointable for T

type Init = T

The type for initializers.

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.