Enum XccyLegKind
#[non_exhaustive]pub enum XccyLegKind {
Fixed,
OvernightCompounded {
accretion_mode: AccretionMode,
},
IborProjected {
reset_position: ResetPosition,
},
}Expand description
Per-leg rate-projection mechanism. Orthogonal to the swap-level CouponMode.
Suffix retained under clause 3 of the enum naming rule: the bare noun
XccyLeg is already taken by the leg dispatch union.
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.
Fixed
Fixed-rate leg.
OvernightCompounded
Overnight-index-compounded (OIS) leg; structurally In-Arrears.
Fields
§
accretion_mode: AccretionModeSpread-compounding mode.
IborProjected
Term-IBOR-projected leg.
Fields
§
reset_position: ResetPositionFixing timing.
Trait Implementations§
§impl Clone for XccyLegKind
impl Clone for XccyLegKind
§fn clone(&self) -> XccyLegKind
fn clone(&self) -> XccyLegKind
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 XccyLegKind
§impl Debug for XccyLegKind
impl Debug for XccyLegKind
impl Eq for XccyLegKind
§impl Hash for XccyLegKind
impl Hash for XccyLegKind
§impl PartialEq for XccyLegKind
impl PartialEq for XccyLegKind
impl StructuralPartialEq for XccyLegKind
Auto Trait Implementations§
impl Freeze for XccyLegKind
impl RefUnwindSafe for XccyLegKind
impl Send for XccyLegKind
impl Sync for XccyLegKind
impl Unpin for XccyLegKind
impl UnsafeUnpin for XccyLegKind
impl UnwindSafe for XccyLegKind
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