pub enum ImpliedVolError {
NegativeSpot(f32),
NegativeStrike(f32),
NegativeMat(f32),
OutOfBoundPrice(f32),
}Expand description
§Implied Vol Input Error
This covers the various ways implied volatility input params can be invalid.
Variants§
NegativeSpot(f32)
Negative spot
NegativeStrike(f32)
Negative strike
NegativeMat(f32)
Negative maturity
OutOfBoundPrice(f32)
Out of bound price
Trait Implementations§
Source§impl Debug for ImpliedVolError
impl Debug for ImpliedVolError
Source§impl<'de> Deserialize<'de> for ImpliedVolError
impl<'de> Deserialize<'de> for ImpliedVolError
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Display for ImpliedVolError
impl Display for ImpliedVolError
Source§impl Error for ImpliedVolError
impl Error for ImpliedVolError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for ImpliedVolError
impl RefUnwindSafe for ImpliedVolError
impl Send for ImpliedVolError
impl Sync for ImpliedVolError
impl Unpin for ImpliedVolError
impl UnsafeUnpin for ImpliedVolError
impl UnwindSafe for ImpliedVolError
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