pub struct LifeConfig {Show 16 fields
pub heat_decay: f32,
pub zone_width: usize,
pub zone_height: usize,
pub check_interval: u64,
pub target_activity: f32,
pub injection_gain: f32,
pub max_injection_chance: f32,
pub zone_cooldown_min: u32,
pub zone_cooldown_max: u32,
pub mutation_chance: f32,
pub initial_soup_density: f32,
pub prune_interval: u64,
pub prune_density_threshold: f32,
pub prune_percentage: f32,
pub center_bias: f32,
pub rebalance_interval: u64,
}Expand description
Configuration for the Life simulation injector.
Fields§
§heat_decay: f32Heat decay factor (0.95-0.995). Higher = longer memory of activity.
zone_width: usizeZone width for analysis (8, 16, 24)
zone_height: usizeZone height for analysis (8, 16, 24)
check_interval: u64How often to check for injection (8, 16, 32, 64 generations)
target_activity: f32Target global activity ratio (0.01-0.08 = 1-8%)
injection_gain: f32Gain for converting activity deficit to injection chance (10-30)
max_injection_chance: f32Maximum injection probability per check (0.05-0.25)
zone_cooldown_min: u32Minimum zone cooldown after injection (generations)
zone_cooldown_max: u32Maximum zone cooldown after injection (generations)
mutation_chance: f32Chance of pattern mutation (0.02-0.08)
initial_soup_density: f32Initial soup density (0.015-0.06 = 1.5-6%)
prune_interval: u64How often to check for pruning (generations)
prune_density_threshold: f32Zone density threshold that triggers pruning (0.0-1.0)
prune_percentage: f32Percentage of cells to remove from dense zones (0.0-1.0)
center_bias: f32How much to favor center zones (0.0 = no bias, 1.0 = strong center bias)
rebalance_interval: u64How often to rebalance cell distribution (generations)
Trait Implementations§
Source§impl Clone for LifeConfig
impl Clone for LifeConfig
Source§fn clone(&self) -> LifeConfig
fn clone(&self) -> LifeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreimpl Copy for LifeConfig
Source§impl Debug for LifeConfig
impl Debug for LifeConfig
Source§impl Default for LifeConfig
impl Default for LifeConfig
Source§impl PartialEq for LifeConfig
impl PartialEq for LifeConfig
impl StructuralPartialEq for LifeConfig
Auto Trait Implementations§
impl Freeze for LifeConfig
impl RefUnwindSafe for LifeConfig
impl Send for LifeConfig
impl Sync for LifeConfig
impl Unpin for LifeConfig
impl UnsafeUnpin for LifeConfig
impl UnwindSafe for LifeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.Source§impl<T> DowncastSync for T
impl<T> DowncastSync for T
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§fn in_current_span(self) -> Instrumented<Self> ⓘ
fn in_current_span(self) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more