Enum VolSurface
enum VolSurface {
Fx(FxVolSurface),
Rate(RateVolSurface),
Credit(CreditVolSurface),
Yoy(YoyVolSurface),
Cpi(CpiVolSurface),
FutureOption(FutureOptionVolSurface),
Sabr(SabrVolSurface),
}Expand description
One vol surface as the store holds it: the payload a VolSurfaceId
maps to. The three RateVolSurface registries — swaption, cap, bond
yield — share one arm and are told apart by the identity alone, which is
what lets the seven former stores be one map.
Variants§
Fx(FxVolSurface)
Rate(RateVolSurface)
Credit(CreditVolSurface)
Yoy(YoyVolSurface)
Cpi(CpiVolSurface)
FutureOption(FutureOptionVolSurface)
Sabr(SabrVolSurface)
Implementations§
§impl VolSurface
impl VolSurface
fn parameters(&self) -> &[f64]
fn parameters(&self) -> &[f64]
The node vols, end to end — what the lift carries for this surface.
fn fx(&self) -> Option<&FxVolSurface>
fn rate(&self) -> Option<&RateVolSurface>
fn smile(&self) -> Option<RateSmileRef<'_>>
fn credit(&self) -> Option<&CreditVolSurface>
fn yoy(&self) -> Option<&YoyVolSurface>
fn cpi(&self) -> Option<&CpiVolSurface>
fn future_option(&self) -> Option<&FutureOptionVolSurface>
Trait Implementations§
§impl Clone for VolSurface
impl Clone for VolSurface
§fn clone(&self) -> VolSurface
fn clone(&self) -> VolSurface
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 VolSurface
impl Debug for VolSurface
§impl PartialEq for VolSurface
impl PartialEq for VolSurface
impl StructuralPartialEq for VolSurface
Auto Trait Implementations§
impl Freeze for VolSurface
impl RefUnwindSafe for VolSurface
impl Send for VolSurface
impl Sync for VolSurface
impl Unpin for VolSurface
impl UnsafeUnpin for VolSurface
impl UnwindSafe for VolSurface
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