pub enum ConstantCurveError {
NaN,
ZeroTrade,
InfinitePrice,
}
Expand description
Errors that can occur when creating or validating a ConstantCurve
Variants§
NaN
Error when any coordinate value is NaN
ZeroTrade
Error when the curve’s domain does not include rate=0
InfinitePrice
Error when the price is infinite
Trait Implementations§
Source§impl Debug for ConstantCurveError
impl Debug for ConstantCurveError
Source§impl Display for ConstantCurveError
impl Display for ConstantCurveError
Source§impl Error for ConstantCurveError
impl Error for ConstantCurveError
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()
Source§impl From<ConstantCurveError> for DemandCurveError
impl From<ConstantCurveError> for DemandCurveError
Source§fn from(source: ConstantCurveError) -> Self
fn from(source: ConstantCurveError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for ConstantCurveError
impl PartialEq for ConstantCurveError
impl StructuralPartialEq for ConstantCurveError
Auto Trait Implementations§
impl Freeze for ConstantCurveError
impl RefUnwindSafe for ConstantCurveError
impl Send for ConstantCurveError
impl Sync for ConstantCurveError
impl Unpin for ConstantCurveError
impl UnwindSafe for ConstantCurveError
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