Enum StubRule
pub enum StubRule {
OwnAccrual,
IndexTenor,
Interpolated {
shorter: IborIndex,
longer: IborIndex,
},
}Expand description
How a term leg’s stubs read the index: over their own accrual period, or by ISDA 2006 §8.3 Linear Interpolation between two named Designated Maturities, as a confirmation elects it.
Variants§
OwnAccrual
A stub projects over its own accrual period — the rule when nothing is elected.
IndexTenor
A stub reads the index’s full Designated Maturity from its start, as a regular period does — a multi-reset coupon’s reading of a short final sub-period until a rule was stated.
Interpolated
A stub pays the day-weighted blend of shorter and longer, the two
registered term indices the confirmation names.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for StubRule
impl !UnwindSafe for StubRule
impl Freeze for StubRule
impl Send for StubRule
impl Sync for StubRule
impl Unpin for StubRule
impl UnsafeUnpin for StubRule
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