Struct Caplet
pub struct Caplet {
pub fixing: NaiveDate,
pub expiry_years: f64,
pub forward: f64,
pub weight: f64,
pub maturity_years: f64,
pub variance_years: f64,
}Expand description
One caplet of a strip, passively: what a formula prices it on.
Fields§
§fixing: NaiveDateThe coupon’s fixing date.
expiry_years: f64Year fraction from the valuation date to the fixing, floored at zero.
forward: f64The coupon’s projected rate — or its fixing, once observed.
weight: f64N·τ·DF(pay): what one unit of undiscounted payoff is worth.
maturity_years: f64Year fraction from the valuation date to the coupon’s payment — the maturity of the cap this caplet is the last of.
variance_years: f64The time the caplet’s variance accrues over, which is not always its
expiry: for a term fixing the two are equal, and for a rate compounded
over [S, E] it is S + (E − S)/3, the accrual period contributing a
third of itself because the part of the rate still unset decays
linearly across it.
Trait Implementations§
impl Copy for Caplet
impl StructuralPartialEq for Caplet
Auto Trait Implementations§
impl Freeze for Caplet
impl RefUnwindSafe for Caplet
impl Send for Caplet
impl Sync for Caplet
impl Unpin for Caplet
impl UnsafeUnpin for Caplet
impl UnwindSafe for Caplet
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