Enum SabrFormula
#[non_exhaustive]pub enum SabrFormula {
HaganLognormal,
HaganNormal,
NormalBetaZero,
}Expand description
Which expansion of the SABR implied vol is read.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
HaganLognormal
Hagan 2002 eq. 2.17a: a (shifted) Black vol.
HaganNormal
Hagan 2002 eq. B.69a: a (shifted) Bachelier vol.
NormalBetaZero
Hagan 2002 eq. B.59a with a constant local vol — a Bachelier vol at any forward and strike.
Implementations§
§impl SabrFormula
impl SabrFormula
§impl SabrFormula
impl SabrFormula
Trait Implementations§
§impl Clone for SabrFormula
impl Clone for SabrFormula
§fn clone(&self) -> SabrFormula
fn clone(&self) -> SabrFormula
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 moreimpl Copy for SabrFormula
§impl Debug for SabrFormula
impl Debug for SabrFormula
impl Eq for SabrFormula
§impl FromStr for SabrFormula
impl FromStr for SabrFormula
§impl Hash for SabrFormula
impl Hash for SabrFormula
§impl PartialEq for SabrFormula
impl PartialEq for SabrFormula
impl StructuralPartialEq for SabrFormula
Auto Trait Implementations§
impl Freeze for SabrFormula
impl RefUnwindSafe for SabrFormula
impl Send for SabrFormula
impl Sync for SabrFormula
impl Unpin for SabrFormula
impl UnsafeUnpin for SabrFormula
impl UnwindSafe for SabrFormula
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