Struct SabrSmile
pub struct SabrSmile { /* private fields */ }Implementations§
§impl SabrSmile
impl SabrSmile
pub fn new(
expiry: SurfaceTenor,
parameters: SabrParameters,
) -> Result<Self, FerroRiskError>
pub fn new( expiry: SurfaceTenor, parameters: SabrParameters, ) -> Result<Self, FerroRiskError>
pub fn with_forward_anchor(
expiry: SurfaceTenor,
parameters: SabrParameters,
forward_anchor: f64,
) -> Result<Self, FerroRiskError>
pub fn with_forward_anchor( expiry: SurfaceTenor, parameters: SabrParameters, forward_anchor: f64, ) -> Result<Self, FerroRiskError>
pub const fn expiry(self) -> SurfaceTenor
pub const fn parameters(self) -> SabrParameters
pub const fn forward_anchor(self) -> Option<f64>
pub fn black_vol(
self,
market: &SurfaceMarketContext,
strike: f64,
) -> Result<f64, FerroRiskError>
pub fn black_vol( self, market: &SurfaceMarketContext, strike: f64, ) -> Result<f64, FerroRiskError>
Trait Implementations§
§impl Clone for SabrSmile
impl Clone for SabrSmile
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl SurfaceSmile for SabrSmile
impl SurfaceSmile for SabrSmile
§fn expiry(&self) -> SurfaceTenor
fn expiry(&self) -> SurfaceTenor
§fn black_vol(
&self,
market: &SurfaceMarketContext,
strike: f64,
) -> Result<f64, FerroRiskError>
fn black_vol( &self, market: &SurfaceMarketContext, strike: f64, ) -> Result<f64, FerroRiskError>
§fn effective_forward(
&self,
market: &SurfaceMarketContext,
) -> Result<f64, FerroRiskError>
fn effective_forward( &self, market: &SurfaceMarketContext, ) -> Result<f64, FerroRiskError>
impl Copy for SabrSmile
impl StructuralPartialEq for SabrSmile
Auto Trait Implementations§
impl Freeze for SabrSmile
impl RefUnwindSafe for SabrSmile
impl Send for SabrSmile
impl Sync for SabrSmile
impl Unpin for SabrSmile
impl UnsafeUnpin for SabrSmile
impl UnwindSafe for SabrSmile
Blanket Implementations§
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)