Enum ResetCompounding
pub enum ResetCompounding {
Straight,
Flat,
SpreadExclusive,
Averaged,
}Expand description
How a multi-reset coupon combines its resets into one payment — the ISDA 2006 compounding methods (§6.3, Supplement 16) and day-weighted averaging.
Variants§
Straight
Compounds rate and spread: ∏(1 + (rᵢ + s)τᵢ) − 1.
Flat
The spread accrues on the notional’s interest and not on interest on
interest: Cᵢ = (rᵢ + s)τᵢ + (Σⱼ<ᵢ Cⱼ)·rᵢτᵢ, summed.
SpreadExclusive
Compounds the rate alone and adds the spread as simple interest:
∏(1 + rᵢτᵢ) − 1 + s·τ.
Averaged
Averages the resets, day-weighted, and adds the spread:
Σ rᵢτᵢ + s·τ.
Implementations§
§impl ResetCompounding
impl ResetCompounding
Trait Implementations§
§impl Clone for ResetCompounding
impl Clone for ResetCompounding
§fn clone(&self) -> ResetCompounding
fn clone(&self) -> ResetCompounding
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 ResetCompounding
§impl Debug for ResetCompounding
impl Debug for ResetCompounding
impl Eq for ResetCompounding
§impl FromStr for ResetCompounding
impl FromStr for ResetCompounding
§impl PartialEq for ResetCompounding
impl PartialEq for ResetCompounding
§fn eq(&self, other: &ResetCompounding) -> bool
fn eq(&self, other: &ResetCompounding) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for ResetCompounding
Auto Trait Implementations§
impl Freeze for ResetCompounding
impl RefUnwindSafe for ResetCompounding
impl Send for ResetCompounding
impl Sync for ResetCompounding
impl Unpin for ResetCompounding
impl UnsafeUnpin for ResetCompounding
impl UnwindSafe for ResetCompounding
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