Enum YieldSolveError
#[non_exhaustive]pub enum YieldSolveError {
Unbracketed {
lo: f64,
hi: f64,
},
Unconverged {
residual: f64,
iterations: usize,
},
}Expand description
Why a yield solve produced no yield.
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.
Unbracketed
No yield in the searched bracket produces the price.
Unconverged
The iteration cap was reached with this price residual outstanding.
Trait Implementations§
§impl Clone for YieldSolveError
impl Clone for YieldSolveError
§fn clone(&self) -> YieldSolveError
fn clone(&self) -> YieldSolveError
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 moreimpl Copy for YieldSolveError
§impl Debug for YieldSolveError
impl Debug for YieldSolveError
§impl Display for YieldSolveError
impl Display for YieldSolveError
§impl Error for YieldSolveError
impl Error for YieldSolveError
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 From<YieldSolveError> for LinkerQuoteError
impl From<YieldSolveError> for LinkerQuoteError
§fn from(e: YieldSolveError) -> Self
fn from(e: YieldSolveError) -> Self
Converts to this type from the input type.
§impl From<YieldSolveError> for CallYieldError
impl From<YieldSolveError> for CallYieldError
§fn from(e: YieldSolveError) -> Self
fn from(e: YieldSolveError) -> 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 YieldSolveError
impl PartialEq for YieldSolveError
impl StructuralPartialEq for YieldSolveError
Auto Trait Implementations§
impl Freeze for YieldSolveError
impl RefUnwindSafe for YieldSolveError
impl Send for YieldSolveError
impl Sync for YieldSolveError
impl Unpin for YieldSolveError
impl UnsafeUnpin for YieldSolveError
impl UnwindSafe for YieldSolveError
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