Enum RateSmile
pub enum RateSmile {
Grid(RateVolSurface),
Sabr(SabrVolSurface),
}Expand description
A rate smile as a registry holds it: a grid, or a SABR surface beside it.
Variants§
Grid(RateVolSurface)
A grid of quoted vols, read by interpolation.
Sabr(SabrVolSurface)
A SABR model smile.
Trait Implementations§
§impl From<RateVolSurface> for RateSmile
impl From<RateVolSurface> for RateSmile
§fn from(surface: RateVolSurface) -> Self
fn from(surface: RateVolSurface) -> Self
Converts to this type from the input type.
§impl From<SabrVolSurface> for RateSmile
impl From<SabrVolSurface> for RateSmile
§fn from(surface: SabrVolSurface) -> Self
fn from(surface: SabrVolSurface) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for RateSmile
Auto Trait Implementations§
impl Freeze for RateSmile
impl RefUnwindSafe for RateSmile
impl Send for RateSmile
impl Sync for RateSmile
impl Unpin for RateSmile
impl UnsafeUnpin for RateSmile
impl UnwindSafe for RateSmile
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