Enum MonthObservation
pub enum MonthObservation {
Flat,
DailyInterpolated,
}Expand description
How a market reads the index inside the lagged month.
The pricing path does not use this — see
InflationLinkedBond::lagged, which
is the observation a linker’s flows are scaled by. This is the observation
its quote is expressed in, and the two may legitimately disagree.
Variants§
Flat
Flat within the month: Ref(d) = I(m − lag). The UK eight-month-lag
generation, whose reference index is a single published figure per
dividend rather than a daily series.
DailyInterpolated
Daily-interpolated between the lagged month and the next:
Ref(d) = I(m − lag) + (day − 1)/D · (I(m − lag + 1) − I(m − lag)),
with D the days in d’s own month. The TIPS rule, followed by the
RRB and the UK three-month generation.
Implementations§
§impl MonthObservation
impl MonthObservation
Trait Implementations§
§impl Clone for MonthObservation
impl Clone for MonthObservation
§fn clone(&self) -> MonthObservation
fn clone(&self) -> MonthObservation
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 moreimpl Copy for MonthObservation
§impl Debug for MonthObservation
impl Debug for MonthObservation
impl Eq for MonthObservation
§impl FromStr for MonthObservation
impl FromStr for MonthObservation
§impl Hash for MonthObservation
impl Hash for MonthObservation
§impl PartialEq for MonthObservation
impl PartialEq for MonthObservation
§fn eq(&self, other: &MonthObservation) -> bool
fn eq(&self, other: &MonthObservation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for MonthObservation
Auto Trait Implementations§
impl Freeze for MonthObservation
impl RefUnwindSafe for MonthObservation
impl Send for MonthObservation
impl Sync for MonthObservation
impl Unpin for MonthObservation
impl UnsafeUnpin for MonthObservation
impl UnwindSafe for MonthObservation
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