Skip to main content

Stores

Struct Stores 

struct Stores<'a, R: Scalar> {
    fixings: &'a FixingStore,
    fixing_params: &'a [R],
    fx: &'a FxRates,
    fx_params: &'a [R],
    fixed_discount: Option<&'a ResolvedCurve<'a, R>>,
    fixed_foreign: Option<&'a ResolvedCurve<'a, R>>,
    inflation: Option<ResolvedInflation<'a, R>>,
    credit: Option<ResolvedCredit<'a, R>>,
    collateral: Option<&'a CollateralCurves<'a, R>>,
    base_correlation: Option<&'a BaseCorrelation>,
}
Expand description

The lifted stores a pass prices against, borrowed by every valuation.

Generic over the mode because two of them read it: the solve seeds one pillar at a time in Jet1, and the Jacobian seeds a block of them in JetK. Lifting once per pass rather than once per valuation is the point — a store that does not move should not be re-lifted for every rung.

Fields§

§fixings: &'a FixingStore§fixing_params: &'a [R]§fx: &'a FxRates§fx_params: &'a [R]§fixed_discount: Option<&'a ResolvedCurve<'a, R>>§fixed_foreign: Option<&'a ResolvedCurve<'a, R>>

The foreign curve held fixed beside fixed_discount, for a non-deliverable rung’s conversions; None for every other form.

§inflation: Option<ResolvedInflation<'a, R>>

The inflation curve a rung reads. None for a rate ladder, whose rungs name no price index; Some for an inflation ladder, where it is the curve under solve.

§credit: Option<ResolvedCredit<'a, R>>

The credit curve a rung reads. None for a rate or inflation ladder; Some for a credit ladder, where it is the curve under solve.

§collateral: Option<&'a CollateralCurves<'a, R>>

The fixed curves of a collateral ladder, whose curve under solve is a cross-currency rung’s receive-leg discount. None for every other form.

§base_correlation: Option<&'a BaseCorrelation>

The base-correlation curve a tranche reads. Passive in every mode — correlation is never lifted — and Some only for the tranche bootstrap, where it is the curve under solve.

Auto Trait Implementations§

§

impl<'a, R> !RefUnwindSafe for Stores<'a, R>

§

impl<'a, R> !Send for Stores<'a, R>

§

impl<'a, R> !Sync for Stores<'a, R>

§

impl<'a, R> !UnwindSafe for Stores<'a, R>

§

impl<'a, R> Freeze for Stores<'a, R>
where R: Freeze,

§

impl<'a, R> Unpin for Stores<'a, R>
where R: Unpin,

§

impl<'a, R> UnsafeUnpin for Stores<'a, R>
where R: UnsafeUnpin,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.