pub struct CrowdConfig {
pub count: usize,
pub seed: u32,
pub height_range: (f32, f32),
pub weight_range: (f32, f32),
pub age_range: (f32, f32),
pub muscle_range: (f32, f32),
pub diversity_target: f32,
pub allow_duplicates: bool,
pub extra_params: HashMap<String, (f32, f32)>,
}Expand description
Configuration for crowd generation.
Fields§
§count: usizeNumber of characters to generate.
seed: u32Deterministic seed for reproducibility.
height_range: (f32, f32)Height parameter range [min, max] in [0, 1].
weight_range: (f32, f32)Weight parameter range [min, max] in [0, 1].
age_range: (f32, f32)Age parameter range [min, max] in [0, 1].
muscle_range: (f32, f32)Muscle parameter range [min, max] in [0, 1].
diversity_target: f320.0 = uniform distribution, 1.0 = maximum spread.
allow_duplicates: boolIf false, the generator will attempt to avoid duplicate param sets.
extra_params: HashMap<String, (f32, f32)>Additional named parameter ranges: name → (min, max).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for CrowdConfig
impl RefUnwindSafe for CrowdConfig
impl Send for CrowdConfig
impl Sync for CrowdConfig
impl Unpin for CrowdConfig
impl UnsafeUnpin for CrowdConfig
impl UnwindSafe for CrowdConfig
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> 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