Enum BondOptionError
#[non_exhaustive]pub enum BondOptionError {
CallableUnderlying,
CreditTaggedUnderlying,
NonFiniteStrike,
ExpiryNotBeforeMaturity {
expiry: NaiveDate,
maturity: NaiveDate,
},
SettlementBeforeExpiry {
expiry: NaiveDate,
settlement: NaiveDate,
},
}Expand description
A bond option that cannot be built.
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.
CallableUnderlying
The underlying carries a call schedule; the option prices the bullet.
CreditTaggedUnderlying
The underlying is credit-tagged; the option is written on the risk-free bullet.
NonFiniteStrike
The strike is not a finite number.
ExpiryNotBeforeMaturity
The option expires on or after the bond’s maturity.
SettlementBeforeExpiry
Exercise settles before the option expires.
Trait Implementations§
§impl Clone for BondOptionError
impl Clone for BondOptionError
§fn clone(&self) -> BondOptionError
fn clone(&self) -> BondOptionError
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 BondOptionError
impl Debug for BondOptionError
§impl Display for BondOptionError
impl Display for BondOptionError
§impl Error for BondOptionError
impl Error for BondOptionError
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 BondOptionError
impl PartialEq for BondOptionError
impl StructuralPartialEq for BondOptionError
Auto Trait Implementations§
impl Freeze for BondOptionError
impl RefUnwindSafe for BondOptionError
impl Send for BondOptionError
impl Sync for BondOptionError
impl Unpin for BondOptionError
impl UnsafeUnpin for BondOptionError
impl UnwindSafe for BondOptionError
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