[−][src]Struct gol_core::board::standard::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]
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>,
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]
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>,
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]
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>,
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]
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>,
Auto Trait Implementations
impl RefUnwindSafe for StandardBoardFactory
[src]
impl Send for StandardBoardFactory
[src]
impl Sync for StandardBoardFactory
[src]
impl Unpin for StandardBoardFactory
[src]
impl UnwindSafe for StandardBoardFactory
[src]
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> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Pointable for T
pub const ALIGN: usize
type Init = T
The type for initializers.
pub unsafe fn init(init: <T as Pointable>::Init) -> usize
pub unsafe fn deref<'a>(ptr: usize) -> &'a T
pub unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
pub unsafe fn drop(ptr: usize)
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>,