Struct Collar
pub struct Collar {
pub cap: Option<f64>,
pub floor: Option<f64>,
}Expand description
A cap and/or floor on a floating coupon’s rate gearing · index + spread,
as a decimal each.
A coupon whose reset has printed pays its rate clamped. One still to fix
is worth its forward rate less a caplet at the cap plus a floorlet at the
floor, each on the index at the strike the collar implies,
(K − spread) / gearing, times |gearing| — read off the currency’s cap
vol surface at the fixing and the index tenor.
Fields§
§cap: Option<f64>The most the rate pays.
floor: Option<f64>The least the rate pays.
Implementations§
Trait Implementations§
impl Copy for Collar
impl StructuralPartialEq for Collar
Auto Trait Implementations§
impl Freeze for Collar
impl RefUnwindSafe for Collar
impl Send for Collar
impl Sync for Collar
impl Unpin for Collar
impl UnsafeUnpin for Collar
impl UnwindSafe for Collar
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