pub enum VolShift {
ParallelAbsolute(f64),
ParallelRelative(f64),
}Expand description
A shift applied to a whole surface by VolSurface::bumped. The
surface owns the semantics: shifts move every quoted vol, preserving
the smile shape and the surface’s coordinate system.
Variants§
ParallelAbsolute(f64)
Add d vol points to every quote (e.g. 0.01 = +1 vol point).
ParallelRelative(f64)
Scale every quote by 1 + r (e.g. 0.10 = vols up 10%).
Trait Implementations§
impl Copy for VolShift
impl StructuralPartialEq for VolShift
Auto Trait Implementations§
impl Freeze for VolShift
impl RefUnwindSafe for VolShift
impl Send for VolShift
impl Sync for VolShift
impl Unpin for VolShift
impl UnsafeUnpin for VolShift
impl UnwindSafe for VolShift
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