Enum AssetClass
#[non_exhaustive]pub enum AssetClass {
Rates,
Credit,
Fx,
Inflation,
Equity,
}Expand description
The desk a risk axis belongs to — the grouping a caller looks for a measure under.
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.
Rates
Discounting, projection, repo and rate vol.
Credit
Hazard, recovery, base correlation and a bond’s own spread.
Fx
FX spot and FX vol.
Inflation
Inflation curves.
Equity
Equity spots.
Implementations§
§impl AssetClass
impl AssetClass
§impl AssetClass
impl AssetClass
pub const ALL: [AssetClass; 5]
pub const ALL: [AssetClass; 5]
Every class, in the order a catalogue lists them.
Trait Implementations§
§impl Clone for AssetClass
impl Clone for AssetClass
§fn clone(&self) -> AssetClass
fn clone(&self) -> AssetClass
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 AssetClass
§impl Debug for AssetClass
impl Debug for AssetClass
§impl Display for AssetClass
impl Display for AssetClass
impl Eq for AssetClass
§impl FromStr for AssetClass
impl FromStr for AssetClass
§impl Hash for AssetClass
impl Hash for AssetClass
§impl Ord for AssetClass
impl Ord for AssetClass
§fn cmp(&self, other: &AssetClass) -> Ordering
fn cmp(&self, other: &AssetClass) -> Ordering
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for AssetClass
impl PartialEq for AssetClass
§impl PartialOrd for AssetClass
impl PartialOrd for AssetClass
impl StructuralPartialEq for AssetClass
Auto Trait Implementations§
impl Freeze for AssetClass
impl RefUnwindSafe for AssetClass
impl Send for AssetClass
impl Sync for AssetClass
impl Unpin for AssetClass
impl UnsafeUnpin for AssetClass
impl UnwindSafe for AssetClass
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