fn update_grid_flow(particles: View<Particle>, mut map:UniqueViewMut<Cells>) -> Result<(), GameOver> {
    for particle in particles.iter() {
        let cell_index = particle.get_cell_index();
        map.all_cells[cell_index].update_flow(particle);
    }
    Ok(())
}
// have the particles update the cells they're in
have the particles update the cells they're in
have the particles update the cells they ' re in
fn update_grid_flow(particles: View<Particle>, mut map:UniqueViewMut<Cells>) -> Result<(), GameOver> {
    for particle in particles.iter() {
        let cell_index = particle.get_cell_index();
        map.all_cells[cell_index].update_flow(particle);
    }
    Ok(())
}
fn update_grid_flow ( particles : View < Particle > , mut map : UniqueViewMut < Cells > ) -> Result < ( ) , GameOver > { for particle in particles . iter ( ) { let cell_index = particle . get_cell_index ( ) ; map . all_cells [ cell_index ] . update_flow ( particle ) ; } Ok ( ( ) ) }
have the particles update the cells they're in
have the particles update the cells they ' re in
particles
View<Particle>
map
UniqueViewMut<Cells>
particles
View<Particle>
map
UniqueViewMut<Cells>