pub struct Vol(pub String);Expand description
Implied volatility surface of one underlying, by symbol.
Stored behind Arc: cloning a market (the first step of every
scenario bump) shares untouched surfaces instead of deep-copying
them, and rebinding an instrument to a market is a refcount bump.
Bumps are copy-on-write — a shocked surface is a new Arc, so
snapshots stay immutable.
Tuple Fields§
§0: StringTrait Implementations§
impl Eq for Vol
Source§impl MarketKey for Vol
impl MarketKey for Vol
Source§type Value = Arc<VolSurface>
type Value = Arc<VolSurface>
The type a lookup with this key returns.
Clone so a whole market
can be cloned (the basis of scenario bumping: copy, then perturb).impl StructuralPartialEq for Vol
Auto Trait Implementations§
impl Freeze for Vol
impl RefUnwindSafe for Vol
impl Send for Vol
impl Sync for Vol
impl Unpin for Vol
impl UnsafeUnpin for Vol
impl UnwindSafe for Vol
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