pub struct GrowthConfig {
pub pattern: GrowthPattern,
pub max_nodes: usize,
pub branching_probability: f64,
pub branching_angle: f64,
pub energy_decay: f64,
pub min_energy_for_branch: f64,
pub max_depth: u32,
pub anastomosis_probability: f64,
pub prune_idle_cycles: u32,
pub trail_persistence: f64,
pub trail_evaporation: f64,
pub lsystem_rules: Vec<(char, String)>,
}Expand description
Növekedési konfigurációs paraméterek
Fields§
§pattern: GrowthPatternNövekedési minta
max_nodes: usizeMaximum node-ok száma
branching_probability: f64Elágazási valószínűség (0.0 - 1.0)
branching_angle: f64Elágazási szög (radián)
energy_decay: f64Energia bomlási ráta (mennyit veszít egy ág hosszegységenként)
min_energy_for_branch: f64Minimum energia az elágazáshoz
max_depth: u32Maximális növekedési mélység (hány generáció)
anastomosis_probability: f64Anastomosis (fúzió) valószínűsége
prune_idle_cycles: u32Pruning threshold (mennyi ideig használatlan ág haljon el)
trail_persistence: f64Slime mold specifikus: nyom megőrzési ráta
trail_evaporation: f64Slime mold specifikus: nyom párolgási ráta
lsystem_rules: Vec<(char, String)>L-system specifikus: produkciós szabályok
Implementations§
Source§impl GrowthConfig
impl GrowthConfig
pub fn mycelium_default() -> Self
pub fn capillary_default() -> Self
pub fn slime_mold_default() -> Self
pub fn fractal_lsystem_default() -> Self
Trait Implementations§
Source§impl Clone for GrowthConfig
impl Clone for GrowthConfig
Source§impl Debug for GrowthConfig
impl Debug for GrowthConfig
Auto Trait Implementations§
impl Freeze for GrowthConfig
impl RefUnwindSafe for GrowthConfig
impl Send for GrowthConfig
impl Sync for GrowthConfig
impl Unpin for GrowthConfig
impl UnsafeUnpin for GrowthConfig
impl UnwindSafe for GrowthConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<A, B, T> HttpServerConnExec<A, B> for Twhere
B: Body,
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> ⓘ
Converts
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> ⓘ
Converts
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