Enum BondReadingError
#[non_exhaustive]pub enum BondReadingError {
Product(NotTheProduct),
Pricing(PricingError),
Basis(NoSingleBasis),
Yield(YieldSolveError),
CallYield(CallYieldError),
NoExerciseOn {
date: NaiveDate,
},
}Expand description
Why a callable’s curve-free yield could not be 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.
Product(NotTheProduct)
The instrument is not the product the reading is about: a caller’s input, naming the verb, the product it takes and the one given.
Pricing(PricingError)
The market refused, or a solve did not bracket.
Basis(NoSingleBasis)
The convention names no single compounding basis.
Yield(YieldSolveError)
A redemption scenario’s price could not be bracketed.
CallYield(CallYieldError)
The exercise entry has no curve-free yield, or lies in the past.
NoExerciseOn
The callable has no exercise entry on the date named.
Trait Implementations§
§impl Clone for BondReadingError
impl Clone for BondReadingError
§fn clone(&self) -> BondReadingError
fn clone(&self) -> BondReadingError
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 BondReadingError
impl Debug for BondReadingError
§impl Display for BondReadingError
impl Display for BondReadingError
§impl Error for BondReadingError
impl Error for BondReadingError
§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 From<CallYieldError> for BondReadingError
impl From<CallYieldError> for BondReadingError
§fn from(e: CallYieldError) -> Self
fn from(e: CallYieldError) -> Self
Converts to this type from the input type.
§impl From<NoSingleBasis> for BondReadingError
impl From<NoSingleBasis> for BondReadingError
§fn from(e: NoSingleBasis) -> Self
fn from(e: NoSingleBasis) -> Self
Converts to this type from the input type.
§impl From<NotTheProduct> for BondReadingError
impl From<NotTheProduct> for BondReadingError
§fn from(e: NotTheProduct) -> Self
fn from(e: NotTheProduct) -> Self
Converts to this type from the input type.
§impl From<PricingError> for BondReadingError
impl From<PricingError> for BondReadingError
§fn from(e: PricingError) -> Self
fn from(e: PricingError) -> Self
Converts to this type from the input type.
§impl From<YieldSolveError> for BondReadingError
impl From<YieldSolveError> for BondReadingError
§fn from(e: YieldSolveError) -> Self
fn from(e: YieldSolveError) -> Self
Converts to this type from the input type.
§impl PartialEq for BondReadingError
impl PartialEq for BondReadingError
§fn eq(&self, other: &BondReadingError) -> bool
fn eq(&self, other: &BondReadingError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for BondReadingError
Auto Trait Implementations§
impl Freeze for BondReadingError
impl RefUnwindSafe for BondReadingError
impl Send for BondReadingError
impl Sync for BondReadingError
impl Unpin for BondReadingError
impl UnsafeUnpin for BondReadingError
impl UnwindSafe for BondReadingError
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