Enum IndexInterpolation
pub enum IndexInterpolation {
Month,
Interpolated,
}Expand description
How a coupon date maps onto monthly index prints.
Variants§
Month
Use the single (lagged) reference month’s print.
Interpolated
Linearly blend the lagged reference month and the next month by the coupon date’s day-of-month (the “interpolated” market convention).
Implementations§
§impl IndexInterpolation
impl IndexInterpolation
Trait Implementations§
§impl Clone for IndexInterpolation
impl Clone for IndexInterpolation
§fn clone(&self) -> IndexInterpolation
fn clone(&self) -> IndexInterpolation
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 IndexInterpolation
§impl Debug for IndexInterpolation
impl Debug for IndexInterpolation
impl Eq for IndexInterpolation
§impl FromStr for IndexInterpolation
impl FromStr for IndexInterpolation
§impl PartialEq for IndexInterpolation
impl PartialEq for IndexInterpolation
§fn eq(&self, other: &IndexInterpolation) -> bool
fn eq(&self, other: &IndexInterpolation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for IndexInterpolation
Auto Trait Implementations§
impl Freeze for IndexInterpolation
impl RefUnwindSafe for IndexInterpolation
impl Send for IndexInterpolation
impl Sync for IndexInterpolation
impl Unpin for IndexInterpolation
impl UnsafeUnpin for IndexInterpolation
impl UnwindSafe for IndexInterpolation
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