pub struct ContagionConfig {
pub base_strength: f64,
pub decay_rate: f64,
pub min_threshold: f64,
pub max_value: f64,
}Expand description
Configuration for the affect contagion model.
Fields§
§base_strength: f64Base contagion strength (0.0-1.0), how strongly affect transfers
decay_rate: f64Decay rate per second (affect returns to baseline over time)
min_threshold: f64Minimum change threshold (below this, affect changes are ignored)
max_value: f64Maximum affect value (clamp to this)
Trait Implementations§
Source§impl Clone for ContagionConfig
impl Clone for ContagionConfig
Source§fn clone(&self) -> ContagionConfig
fn clone(&self) -> ContagionConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContagionConfig
impl Debug for ContagionConfig
Auto Trait Implementations§
impl Freeze for ContagionConfig
impl RefUnwindSafe for ContagionConfig
impl Send for ContagionConfig
impl Sync for ContagionConfig
impl Unpin for ContagionConfig
impl UnsafeUnpin for ContagionConfig
impl UnwindSafe for ContagionConfig
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