Enum BondRungError
#[non_exhaustive]pub enum BondRungError {
Bond(CurveError),
UnsupportedQuote {
measure: BondMeasure,
units: QuoteUnits,
},
CircularSpread,
}Expand description
Why a bond could not be made a rung.
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.
Bond(CurveError)
The static could not be materialised into a bond.
UnsupportedQuote
A measure-and-units pair this helper does not serve.
CircularSpread
A spread quote presupposes the benchmark this rung would calibrate.
Trait Implementations§
§impl Clone for BondRungError
impl Clone for BondRungError
§fn clone(&self) -> BondRungError
fn clone(&self) -> BondRungError
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 BondRungError
impl Debug for BondRungError
§impl Display for BondRungError
impl Display for BondRungError
§impl Error for BondRungError
impl Error for BondRungError
§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 BondRungError
impl PartialEq for BondRungError
impl StructuralPartialEq for BondRungError
Auto Trait Implementations§
impl Freeze for BondRungError
impl RefUnwindSafe for BondRungError
impl Send for BondRungError
impl Sync for BondRungError
impl Unpin for BondRungError
impl UnsafeUnpin for BondRungError
impl UnwindSafe for BondRungError
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