Enum BasketCorrelation
pub enum BasketCorrelation {
Contract(f64),
Market(String),
}Expand description
Where a basket’s asset correlation comes from.
A contract correlation is a term of the trade and has no risk row; a
market correlation is read from MarketContext::with_basket_correlation
under its key and carries one on the correlation axis — as a contractual
recovery and a market recovery differ.
Variants§
Contract(f64)
A correlation in [0, 1) stated on the trade.
Market(String)
The market’s basket correlation under this key.
Trait Implementations§
§impl Clone for BasketCorrelation
impl Clone for BasketCorrelation
§fn clone(&self) -> BasketCorrelation
fn clone(&self) -> BasketCorrelation
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 BasketCorrelation
impl Debug for BasketCorrelation
§impl PartialEq for BasketCorrelation
impl PartialEq for BasketCorrelation
§fn eq(&self, other: &BasketCorrelation) -> bool
fn eq(&self, other: &BasketCorrelation) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BasketCorrelation
Auto Trait Implementations§
impl Freeze for BasketCorrelation
impl RefUnwindSafe for BasketCorrelation
impl Send for BasketCorrelation
impl Sync for BasketCorrelation
impl Unpin for BasketCorrelation
impl UnsafeUnpin for BasketCorrelation
impl UnwindSafe for BasketCorrelation
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