Enum EquityOptionError
#[non_exhaustive]pub enum EquityOptionError {
NonPositiveStrike,
ZeroQuantity,
MalformedBarrier,
}Expand description
Why an equity option’s terms were refused.
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.
NonPositiveStrike
A strike that is not finite and strictly positive.
ZeroQuantity
A quantity that is zero or not finite.
MalformedBarrier
A barrier level that is not finite and positive, or a rebate that is negative or not finite.
Trait Implementations§
§impl Clone for EquityOptionError
impl Clone for EquityOptionError
§fn clone(&self) -> EquityOptionError
fn clone(&self) -> EquityOptionError
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 more§impl Debug for EquityOptionError
impl Debug for EquityOptionError
§impl Display for EquityOptionError
impl Display for EquityOptionError
§impl Error for EquityOptionError
impl Error for EquityOptionError
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()
§impl PartialEq for EquityOptionError
impl PartialEq for EquityOptionError
§fn eq(&self, other: &EquityOptionError) -> bool
fn eq(&self, other: &EquityOptionError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for EquityOptionError
Auto Trait Implementations§
impl Freeze for EquityOptionError
impl RefUnwindSafe for EquityOptionError
impl Send for EquityOptionError
impl Sync for EquityOptionError
impl Unpin for EquityOptionError
impl UnsafeUnpin for EquityOptionError
impl UnwindSafe for EquityOptionError
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