pub enum OptionValuationError {
InvalidInput(&'static str),
ImpliedVolatilityUnavailable,
InvalidResult,
Expired(InstrumentId),
UnsupportedSpread(InstrumentId),
}Expand description
An unsupported or invalid local option valuation.
Variants§
Trait Implementations§
Source§impl Clone for OptionValuationError
impl Clone for OptionValuationError
impl Copy for OptionValuationError
Source§impl Debug for OptionValuationError
impl Debug for OptionValuationError
Source§impl Display for OptionValuationError
impl Display for OptionValuationError
impl Eq for OptionValuationError
Source§impl Error for OptionValuationError
impl Error for OptionValuationError
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()
Source§impl PartialEq for OptionValuationError
impl PartialEq for OptionValuationError
impl StructuralPartialEq for OptionValuationError
Auto Trait Implementations§
impl Freeze for OptionValuationError
impl RefUnwindSafe for OptionValuationError
impl Send for OptionValuationError
impl Sync for OptionValuationError
impl Unpin for OptionValuationError
impl UnsafeUnpin for OptionValuationError
impl UnwindSafe for OptionValuationError
Blanket Implementations§
impl<T> Allocation for T
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more