Enum QuantityKind
#[non_exhaustive]pub enum QuantityKind {
Rate,
Spread,
Vol,
Recovery,
Correlation,
Fx,
Price,
}Expand description
The kind of quote an axis moves — what a default scale is keyed by.
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.
Rate
A rate: a zero rate, a repo rate, an inflation level or breakeven.
Spread
A spread: a hazard, a bond’s spread over its benchmark.
Vol
A volatility.
Recovery
A recovery rate.
Correlation
A correlation.
Fx
An FX spot.
Price
A quoted price, in points per 100 face.
Implementations§
§impl QuantityKind
impl QuantityKind
§impl QuantityKind
impl QuantityKind
pub const ALL: [QuantityKind; 7]
pub const ALL: [QuantityKind; 7]
Every kind.
Trait Implementations§
§impl Clone for QuantityKind
impl Clone for QuantityKind
§fn clone(&self) -> QuantityKind
fn clone(&self) -> QuantityKind
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 QuantityKind
§impl Debug for QuantityKind
impl Debug for QuantityKind
§impl Display for QuantityKind
impl Display for QuantityKind
impl Eq for QuantityKind
§impl FromStr for QuantityKind
impl FromStr for QuantityKind
§impl Hash for QuantityKind
impl Hash for QuantityKind
§impl Ord for QuantityKind
impl Ord for QuantityKind
§fn cmp(&self, other: &QuantityKind) -> Ordering
fn cmp(&self, other: &QuantityKind) -> 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 QuantityKind
impl PartialEq for QuantityKind
§impl PartialOrd for QuantityKind
impl PartialOrd for QuantityKind
impl StructuralPartialEq for QuantityKind
Auto Trait Implementations§
impl Freeze for QuantityKind
impl RefUnwindSafe for QuantityKind
impl Send for QuantityKind
impl Sync for QuantityKind
impl Unpin for QuantityKind
impl UnsafeUnpin for QuantityKind
impl UnwindSafe for QuantityKind
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