Struct gridsim_ui::Loop [−][src]
pub struct Loop<'a, S> where
S: Sim<'a>, { /* fields omitted */ }Methods
impl<'a, S> Loop<'a, S> where
S: Sim<'a>, [src]
impl<'a, S> Loop<'a, S> where
S: Sim<'a>, pub fn new<C>(coloration: C) -> Self where
C: Fn(&S::Cell) -> [f32; 4] + Sync + 'static, [src]
pub fn new<C>(coloration: C) -> Self where
C: Fn(&S::Cell) -> [f32; 4] + Sync + 'static, pub fn new_bool() -> Self where
S: Sim<'a, Cell = bool>, [src]
pub fn new_bool() -> Self where
S: Sim<'a, Cell = bool>, pub fn scale(&mut self, scale: f32) -> &mut Self[src]
pub fn scale(&mut self, scale: f32) -> &mut Selfpub fn filter<F>(&mut self, filter: F) -> &mut Self where
F: Fn(&S::Cell) -> bool + Sync + 'static, [src]
pub fn filter<F>(&mut self, filter: F) -> &mut Self where
F: Fn(&S::Cell) -> bool + Sync + 'static, pub fn run(&self, grid: SquareGrid<'a, S>) where
S: 'a,
S::Cell: Sync + Send,
S::Move: Sync + Send,
S::Diff: Sync + Send,
S::Neighbors: Sync + Send,
S::MoveNeighbors: Sync + Send,
SquareGrid<'a, S>: TakeMoveNeighbors<usize, S::MoveNeighbors>,
SquareGrid<'a, S>: GetNeighbors<'a, usize, S::Neighbors>, [src]
pub fn run(&self, grid: SquareGrid<'a, S>) where
S: 'a,
S::Cell: Sync + Send,
S::Move: Sync + Send,
S::Diff: Sync + Send,
S::Neighbors: Sync + Send,
S::MoveNeighbors: Sync + Send,
SquareGrid<'a, S>: TakeMoveNeighbors<usize, S::MoveNeighbors>,
SquareGrid<'a, S>: GetNeighbors<'a, usize, S::Neighbors>,