Struct SabrSurface
pub struct SabrSurface { /* private fields */ }Implementations§
§impl SabrSurface
impl SabrSurface
pub fn new(
market: SurfaceMarketContext,
smiles: Vec<SabrSmile>,
smile_strikes: Vec<f64>,
) -> Result<Self, FerroRiskError>
pub fn new( market: SurfaceMarketContext, smiles: Vec<SabrSmile>, smile_strikes: Vec<f64>, ) -> Result<Self, FerroRiskError>
pub const fn market(&self) -> &SurfaceMarketContext
pub fn smiles(&self) -> &[SabrSmile]
pub fn smile_strikes(&self) -> &[f64]
Trait Implementations§
§impl Clone for SabrSurface
impl Clone for SabrSurface
§fn clone(&self) -> SabrSurface
fn clone(&self) -> SabrSurface
1.0.0 (const: )§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
§impl PartialEq for SabrSurface
impl PartialEq for SabrSurface
§impl VolSurface for SabrSurface
impl VolSurface for SabrSurface
§fn total_variance(
&self,
expiry: f64,
strike: f64,
) -> Result<f64, FerroRiskError>
fn total_variance( &self, expiry: f64, strike: f64, ) -> Result<f64, FerroRiskError>
§fn is_arbitrage_free(&self) -> Result<ArbFreeReport, FerroRiskError>
fn is_arbitrage_free(&self) -> Result<ArbFreeReport, FerroRiskError>
impl StructuralPartialEq for SabrSurface
Auto Trait Implementations§
impl Freeze for SabrSurface
impl RefUnwindSafe for SabrSurface
impl Send for SabrSurface
impl Sync for SabrSurface
impl Unpin for SabrSurface
impl UnsafeUnpin for SabrSurface
impl UnwindSafe for SabrSurface
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)