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