pub struct VolSurfaceConfigBuilder { /* private fields */ }Available on crate feature
vol-surface only.Expand description
Builder for VolSurfaceConfig.
Each setter consumes self and returns a new builder; call
build to produce the final config. All setters are
const fn, so a config can be assembled in a const context.
Implementations§
Source§impl VolSurfaceConfigBuilder
impl VolSurfaceConfigBuilder
Sourcepub const fn min_usable_strikes(self, value: usize) -> Self
pub const fn min_usable_strikes(self, value: usize) -> Self
Sets min_usable_strikes.
Sourcepub const fn good_strike_count(self, value: usize) -> Self
pub const fn good_strike_count(self, value: usize) -> Self
Sets good_strike_count.
Sourcepub const fn max_iv_spread_filter(self, value: f64) -> Self
pub const fn max_iv_spread_filter(self, value: f64) -> Self
Sets max_iv_spread_filter.
Sourcepub const fn build(self) -> VolSurfaceConfig
pub const fn build(self) -> VolSurfaceConfig
Consumes the builder and returns the configured VolSurfaceConfig.
Trait Implementations§
Source§impl Clone for VolSurfaceConfigBuilder
impl Clone for VolSurfaceConfigBuilder
Source§fn clone(&self) -> VolSurfaceConfigBuilder
fn clone(&self) -> VolSurfaceConfigBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for VolSurfaceConfigBuilder
impl RefUnwindSafe for VolSurfaceConfigBuilder
impl Send for VolSurfaceConfigBuilder
impl Sync for VolSurfaceConfigBuilder
impl Unpin for VolSurfaceConfigBuilder
impl UnsafeUnpin for VolSurfaceConfigBuilder
impl UnwindSafe for VolSurfaceConfigBuilder
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