Struct ResolvedInflation
pub struct ResolvedInflation<'a, R: Scalar> {
inner: Lifted<'a, Inflation, InflationView<'a, R>>,
}Expand description
The inflation curve resolved for one pricing call.
Fields§
§inner: Lifted<'a, Inflation, InflationView<'a, R>>Implementations§
§impl<'a, R: Scalar> ResolvedInflation<'a, R>
impl<'a, R: Scalar> ResolvedInflation<'a, R>
pub fn substituted(
storage: &'a Inflation,
params: &'a [R],
) -> Result<Self, PricingError>
pub fn substituted( storage: &'a Inflation, params: &'a [R], ) -> Result<Self, PricingError>
storage lifted over params in place of its stored ones — how a risk
pass installs registered handles on the inflation side.
§Errors
PricingError::Curve if params is the wrong length for storage.
pub fn passive(&self) -> ResolvedInflation<'a, f64>
pub fn passive(&self) -> ResolvedInflation<'a, f64>
The same curve, carrying no derivatives.
Trait Implementations§
§impl<'a, R: Clone + Scalar> Clone for ResolvedInflation<'a, R>
impl<'a, R: Clone + Scalar> Clone for ResolvedInflation<'a, R>
§fn clone(&self) -> ResolvedInflation<'a, R>
fn clone(&self) -> ResolvedInflation<'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 ResolvedInflation<'a, R>
impl<'a, R: Debug + Scalar> Debug for ResolvedInflation<'a, R>
§impl<R: Scalar> InflationCurve<R> for ResolvedInflation<'_, R>
impl<R: Scalar> InflationCurve<R> for ResolvedInflation<'_, 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 ResolvedInflation<'a, R>
impl<'a, R> RefUnwindSafe for ResolvedInflation<'a, R>where
R: RefUnwindSafe,
impl<'a, R> Send for ResolvedInflation<'a, R>
impl<'a, R> Sync for ResolvedInflation<'a, R>
impl<'a, R> Unpin for ResolvedInflation<'a, R>where
R: Unpin,
impl<'a, R> UnsafeUnpin for ResolvedInflation<'a, R>
impl<'a, R> UnwindSafe for ResolvedInflation<'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