Struct RiskVector
pub struct RiskVector {
entries: Vec<RiskEntry>,
}Expand description
The risk vector one pass produced.
Sorted by key, so two runs of the same valuation compare directly, and sparse: an input the valuation was insensitive to produces no entry rather than a zero row. A ladder full of structural zeroes hides the one axis that was zeroed by mistake.
Fields§
§entries: Vec<RiskEntry>Implementations§
§impl RiskVector
impl RiskVector
pub fn get(&self, id: &MarketInputId) -> Option<f64>
pub fn get(&self, id: &MarketInputId) -> Option<f64>
The derivative reported for id, if any.
pub fn total_on(&self, axis: RiskAxis) -> f64
pub fn total_on(&self, axis: RiskAxis) -> f64
The parallel sum of axis — only that axis.
This is the whole of 8.8: a measure declaring an axis reads the entries belonging to it and nothing else, so a portfolio carrying credit, repo and FX exposure alongside its rate exposure still reports a rate delta that is a rate delta.
Trait Implementations§
§impl Clone for RiskVector
impl Clone for RiskVector
§fn clone(&self) -> RiskVector
fn clone(&self) -> RiskVector
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 RiskVector
impl Debug for RiskVector
§impl Default for RiskVector
impl Default for RiskVector
§fn default() -> RiskVector
fn default() -> RiskVector
Returns the “default value” for a type. Read more
§impl PartialEq for RiskVector
impl PartialEq for RiskVector
impl StructuralPartialEq for RiskVector
Auto Trait Implementations§
impl Freeze for RiskVector
impl RefUnwindSafe for RiskVector
impl Send for RiskVector
impl Sync for RiskVector
impl Unpin for RiskVector
impl UnsafeUnpin for RiskVector
impl UnwindSafe for RiskVector
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