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