Enum CouponMode
#[non_exhaustive]pub enum CouponMode {
Standard,
Zero,
}Expand description
Coupon-payment shape: periodic coupons vs a single payment at maturity.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Standard
Coupons at each schedule period boundary.
Zero
A single payment at maturity (the paired leg’s frequency should be
Frequency::Once).
Trait Implementations§
§impl Clone for CouponMode
impl Clone for CouponMode
§fn clone(&self) -> CouponMode
fn clone(&self) -> CouponMode
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 CouponMode
§impl Debug for CouponMode
impl Debug for CouponMode
impl Eq for CouponMode
§impl Hash for CouponMode
impl Hash for CouponMode
§impl PartialEq for CouponMode
impl PartialEq for CouponMode
impl StructuralPartialEq for CouponMode
Auto Trait Implementations§
impl Freeze for CouponMode
impl RefUnwindSafe for CouponMode
impl Send for CouponMode
impl Sync for CouponMode
impl Unpin for CouponMode
impl UnsafeUnpin for CouponMode
impl UnwindSafe for CouponMode
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