Enum CapFloorKind
pub enum CapFloorKind {
Cap,
Floor,
}Expand description
Whether the strip is a cap or a floor.
Variants§
Cap
Each coupon is a call on its rate: pays max(F − K, 0).
Floor
Each coupon is a put on its rate: pays max(K − F, 0).
Implementations§
§impl CapFloorKind
impl CapFloorKind
Trait Implementations§
§impl Clone for CapFloorKind
impl Clone for CapFloorKind
§fn clone(&self) -> CapFloorKind
fn clone(&self) -> CapFloorKind
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 CapFloorKind
§impl Debug for CapFloorKind
impl Debug for CapFloorKind
impl Eq for CapFloorKind
§impl FromStr for CapFloorKind
impl FromStr for CapFloorKind
§impl Hash for CapFloorKind
impl Hash for CapFloorKind
§impl PartialEq for CapFloorKind
impl PartialEq for CapFloorKind
impl StructuralPartialEq for CapFloorKind
Auto Trait Implementations§
impl Freeze for CapFloorKind
impl RefUnwindSafe for CapFloorKind
impl Send for CapFloorKind
impl Sync for CapFloorKind
impl Unpin for CapFloorKind
impl UnsafeUnpin for CapFloorKind
impl UnwindSafe for CapFloorKind
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