Enum CmsSpreadCorrelation
pub enum CmsSpreadCorrelation {
Contract(f64),
Market,
}Expand description
Where a CMS spread coupon’s rate-to-rate correlation comes from.
A contract correlation is a term of the trade and has no risk row; a
market correlation is the market’s mark for the coupon’s pair of swap
indices, pinned by
MarketContext::with_cms_spread_correlation,
and carries one on the correlation axis. A desk marks one correlation per
pair, calibrated to quoted spread options, so the market variant needs no
key of its own: the pair is the key.
Variants§
Contract(f64)
A correlation in [-1, 1] stated on the trade.
Market
The market’s correlation for the coupon’s two swap indices.
Trait Implementations§
§impl Clone for CmsSpreadCorrelation
impl Clone for CmsSpreadCorrelation
§fn clone(&self) -> CmsSpreadCorrelation
fn clone(&self) -> CmsSpreadCorrelation
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 CmsSpreadCorrelation
§impl Debug for CmsSpreadCorrelation
impl Debug for CmsSpreadCorrelation
§impl From<f64> for CmsSpreadCorrelation
impl From<f64> for CmsSpreadCorrelation
§impl FromStr for CmsSpreadCorrelation
"Market", or a number read as a contract correlation.
impl FromStr for CmsSpreadCorrelation
"Market", or a number read as a contract correlation.
§impl PartialEq for CmsSpreadCorrelation
impl PartialEq for CmsSpreadCorrelation
§fn eq(&self, other: &CmsSpreadCorrelation) -> bool
fn eq(&self, other: &CmsSpreadCorrelation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CmsSpreadCorrelation
Auto Trait Implementations§
impl Freeze for CmsSpreadCorrelation
impl RefUnwindSafe for CmsSpreadCorrelation
impl Send for CmsSpreadCorrelation
impl Sync for CmsSpreadCorrelation
impl Unpin for CmsSpreadCorrelation
impl UnsafeUnpin for CmsSpreadCorrelation
impl UnwindSafe for CmsSpreadCorrelation
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