Struct angled_random_walker::SimulationParams
source · pub struct SimulationParams {
pub size: usize,
pub max_age: usize,
pub max_generations: usize,
pub children: usize,
pub max_child_angle_divergence: f64,
pub paint: Paint,
pub initial_walkers: InitialWalkers,
pub max_age_dropoff: MaxAgeDropoff,
}Expand description
The parameters that control the simulation.
Fields§
§size: usizeSize of the grid.
max_age: usizeMaximum age that walkers survive to.
max_generations: usizeMaximum generations of walkers.
children: usizeHow many children a walker spawns when it ends.
max_child_angle_divergence: f64Maximum angle that a child walker can diverge from its parent. Angles are in units of Pi radians, and clamped to 0.00..=2.00.
paint: PaintWhat to fill the grid with.
initial_walkers: InitialWalkersHow to place initial walkers.
max_age_dropoff: MaxAgeDropoffHow maximum age varies.
Auto Trait Implementations§
impl Freeze for SimulationParams
impl RefUnwindSafe for SimulationParams
impl Send for SimulationParams
impl Sync for SimulationParams
impl Unpin for SimulationParams
impl UnwindSafe for SimulationParams
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