pub enum DemandCurveError {
Pwl(PwlCurveError),
Constant(ConstantCurveError),
}
Expand description
Errors that can occur when constructing demand curves
Variants§
Pwl(PwlCurveError)
Error from constructing a piecewise linear curve
Constant(ConstantCurveError)
Error from constructing a constant curve
Trait Implementations§
Source§impl Debug for DemandCurveError
impl Debug for DemandCurveError
Source§impl Display for DemandCurveError
impl Display for DemandCurveError
Source§impl Error for DemandCurveError
impl Error for DemandCurveError
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 From<PwlCurveError> for DemandCurveError
impl From<PwlCurveError> for DemandCurveError
Source§fn from(source: PwlCurveError) -> Self
fn from(source: PwlCurveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DemandCurveError
impl RefUnwindSafe for DemandCurveError
impl Send for DemandCurveError
impl Sync for DemandCurveError
impl Unpin for DemandCurveError
impl UnwindSafe for DemandCurveError
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