pub struct DriftContext {
pub economic_cycle_factor: f64,
pub is_recession: bool,
pub inflation_rate: f64,
pub market_sentiment: MarketSentiment,
pub period: u32,
pub total_periods: u32,
}Expand description
Context for behavioral drift calculations.
Fields§
§economic_cycle_factor: f64Economic cycle factor (1.0 = neutral, <1.0 = downturn, >1.0 = growth).
is_recession: boolWhether currently in a recession.
inflation_rate: f64Current inflation rate.
market_sentiment: MarketSentimentMarket sentiment.
period: u32Period number (0-indexed).
total_periods: u32Total periods in simulation.
Implementations§
Source§impl DriftContext
impl DriftContext
Sourcepub fn years_elapsed(&self) -> f64
pub fn years_elapsed(&self) -> f64
Get years elapsed (fractional).
Trait Implementations§
Source§impl Clone for DriftContext
impl Clone for DriftContext
Source§fn clone(&self) -> DriftContext
fn clone(&self) -> DriftContext
Returns a duplicate of the value. Read more
1.0.0 · 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 DriftContext
impl Debug for DriftContext
Source§impl Default for DriftContext
impl Default for DriftContext
Source§fn default() -> DriftContext
fn default() -> DriftContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for DriftContext
impl RefUnwindSafe for DriftContext
impl Send for DriftContext
impl Sync for DriftContext
impl Unpin for DriftContext
impl UnwindSafe for DriftContext
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