Enum InflationView
#[non_exhaustive]pub enum InflationView<'a, R: Scalar> {
Piecewise(PiecewiseInflationView<'a, R>),
Shocked(ShockedInflationView<'a, R>),
}Expand description
An Inflation curve lifted into one pricing mode.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Piecewise(PiecewiseInflationView<'a, R>)
See Inflation::Piecewise.
Shocked(ShockedInflationView<'a, R>)
See Inflation::Shocked.
Trait Implementations§
§impl<'a, R: Clone + Scalar> Clone for InflationView<'a, R>
impl<'a, R: Clone + Scalar> Clone for InflationView<'a, R>
§fn clone(&self) -> InflationView<'a, R>
fn clone(&self) -> InflationView<'a, R>
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 more§impl<'a, R: Debug + Scalar> Debug for InflationView<'a, R>
impl<'a, R: Debug + Scalar> Debug for InflationView<'a, R>
§impl<R: Scalar> InflationCurve<R> for InflationView<'_, R>
impl<R: Scalar> InflationCurve<R> for InflationView<'_, R>
§fn reference_date(&self) -> NaiveDate
fn reference_date(&self) -> NaiveDate
The curve’s reference date.
§fn index_level(&self, date: NaiveDate) -> Result<R, CurveError>
fn index_level(&self, date: NaiveDate) -> Result<R, CurveError>
The projected price-index level at
date, seasonally adjusted where the
curve carries seasonality. Read moreAuto Trait Implementations§
impl<'a, R> Freeze for InflationView<'a, R>
impl<'a, R> RefUnwindSafe for InflationView<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for InflationView<'a, R>
impl<'a, R> Sync for InflationView<'a, R>
impl<'a, R> Unpin for InflationView<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for InflationView<'a, R>
impl<'a, R> UnwindSafe for InflationView<'a, R>where
R: RefUnwindSafe + UnwindSafe,
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