Enum NotionalExchange
#[non_exhaustive]pub enum NotionalExchange {
AtStartAndEnd,
AtEnd,
Mtm {
reset_dates: Vec<NaiveDate>,
},
}Expand description
Notional-exchange shape. Mtm carries shape only (its reset_dates are
populated at trade time); MTM pricing is out of scope here.
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.
AtStartAndEnd
Principal exchanged at start and re-exchanged at maturity.
AtEnd
Principal exchanged at maturity alone — a non-deliverable cross-currency swap’s market default.
Mtm
Mark-to-market resetting notional.
Trait Implementations§
§impl Clone for NotionalExchange
impl Clone for NotionalExchange
§fn clone(&self) -> NotionalExchange
fn clone(&self) -> NotionalExchange
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 more§impl Debug for NotionalExchange
impl Debug for NotionalExchange
§impl PartialEq for NotionalExchange
impl PartialEq for NotionalExchange
§fn eq(&self, other: &NotionalExchange) -> bool
fn eq(&self, other: &NotionalExchange) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for NotionalExchange
Auto Trait Implementations§
impl Freeze for NotionalExchange
impl RefUnwindSafe for NotionalExchange
impl Send for NotionalExchange
impl Sync for NotionalExchange
impl Unpin for NotionalExchange
impl UnsafeUnpin for NotionalExchange
impl UnwindSafe for NotionalExchange
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