pub enum CliquetStyle {
Standard,
Reverse {
coupon: f64,
},
Napoleon {
coupon: f64,
},
}Expand description
Payoff family on the reset schedule.
Variants§
Standard
Sum of locally clamped returns (the classic cliquet; local floor 0 = ratchet).
Reverse
Reverse cliquet: a headline coupon eroded by the negative
period returns, coupon + sum_i min(R_i, 0) — conventionally
sold with global_floor = 0. Ignores the local clamp fields.
Napoleon
Napoleon: a coupon plus the worst period return,
coupon + min_i R_i — conventionally global_floor = 0.
Ignores the local clamp fields.
Trait Implementations§
Source§impl Clone for CliquetStyle
impl Clone for CliquetStyle
Source§fn clone(&self) -> CliquetStyle
fn clone(&self) -> CliquetStyle
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 CliquetStyle
Source§impl Debug for CliquetStyle
impl Debug for CliquetStyle
Source§impl PartialEq for CliquetStyle
impl PartialEq for CliquetStyle
impl StructuralPartialEq for CliquetStyle
Auto Trait Implementations§
impl Freeze for CliquetStyle
impl RefUnwindSafe for CliquetStyle
impl Send for CliquetStyle
impl Sync for CliquetStyle
impl Unpin for CliquetStyle
impl UnsafeUnpin for CliquetStyle
impl UnwindSafe for CliquetStyle
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