Enum ParameterLabel
#[non_exhaustive]pub enum ParameterLabel {
Pillar(NaiveDate),
Meeting(MeetingId),
Turn(NaiveDate),
Level,
Spot,
}Expand description
What one free parameter of a curve is, for risk labelling.
The order a curve reports these in is exactly the order
Curve::view_with consumes a substituted vector and
Curve::view_seeded counts a flat index — one walk, so a risk row and a
seeded direction cannot come to mean different pillars.
This lives on the storage, never on the evaluation trait. A curve’s job is to answer what it is worth; what a risk ladder calls its parameters is the lift’s business.
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.
Pillar(NaiveDate)
An ordinary dated pillar.
Meeting(MeetingId)
A step-curve pillar anchored at a central-bank policy decision.
Turn(NaiveDate)
A step-curve pillar anchored at a turn-of-period jump.
Level
A single undated level — a flat hazard, a quoted level with no pillar.
Spot
An FX spot owned by an implied curve.
Trait Implementations§
§impl Clone for ParameterLabel
impl Clone for ParameterLabel
§fn clone(&self) -> ParameterLabel
fn clone(&self) -> ParameterLabel
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 ParameterLabel
impl Debug for ParameterLabel
impl Eq for ParameterLabel
§impl PartialEq for ParameterLabel
impl PartialEq for ParameterLabel
impl StructuralPartialEq for ParameterLabel
Auto Trait Implementations§
impl Freeze for ParameterLabel
impl RefUnwindSafe for ParameterLabel
impl Send for ParameterLabel
impl Sync for ParameterLabel
impl Unpin for ParameterLabel
impl UnsafeUnpin for ParameterLabel
impl UnwindSafe for ParameterLabel
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