pub enum InflationProjection {
ConstantRate(f64),
HistoricalGeometricMean,
ExplicitFutureIndices(Vec<f64>),
}Expand description
Strategy for projecting future calendar-year inflation indices $\lambda_n, \dots, \lambda_{2n-2}$.
Variants§
ConstantRate(f64)
Extrapolate from $\hat{\lambda}{n-1}$ at a constant annual inflation rate rate
($\lambda{n-1+h} = \hat{\lambda}_{n-1} (1 + \text{rate})^h$).
HistoricalGeometricMean
Extrapolate using the geometric mean historical inflation rate $(\hat{\lambda}_{n-1} / \hat{\lambda}_0)^{1/(n-1)} - 1$.
ExplicitFutureIndices(Vec<f64>)
Use explicit caller-supplied future calendar-year indices
$\lambda_n, \dots, \lambda_{2n-2}$ (length n - 1).
Trait Implementations§
Source§impl Clone for InflationProjection
impl Clone for InflationProjection
Source§impl Debug for InflationProjection
impl Debug for InflationProjection
Source§impl<'de> Deserialize<'de> for InflationProjection
impl<'de> Deserialize<'de> for InflationProjection
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for InflationProjection
impl PartialEq for InflationProjection
Source§impl Serialize for InflationProjection
impl Serialize for InflationProjection
impl StructuralPartialEq for InflationProjection
Auto Trait Implementations§
impl Forget for InflationProjection
impl Freeze for InflationProjection
impl Move for InflationProjection
impl RefUnwindSafe for InflationProjection
impl Send for InflationProjection
impl Sync for InflationProjection
impl Unpin for InflationProjection
impl UnsafeUnpin for InflationProjection
impl UnwindSafe for InflationProjection
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