Enum PrecipitationValueError
pub enum PrecipitationValueError {
NonFiniteAmount(f64),
NegativeAmount(f64),
NonFiniteRate(f64),
NegativeRate(f64),
}Expand description
Errors returned by precipitation value constructors.
Variants§
NonFiniteAmount(f64)
Precipitation amount must be finite.
NegativeAmount(f64)
Precipitation amount cannot be negative.
NonFiniteRate(f64)
Precipitation rate must be finite.
NegativeRate(f64)
Precipitation rate cannot be negative.
Trait Implementations§
§impl Clone for PrecipitationValueError
impl Clone for PrecipitationValueError
§fn clone(&self) -> PrecipitationValueError
fn clone(&self) -> PrecipitationValueError
Returns a duplicate of the value. Read more
1.0.0 · 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 PrecipitationValueError
impl Debug for PrecipitationValueError
§impl Display for PrecipitationValueError
impl Display for PrecipitationValueError
§impl Error for PrecipitationValueError
impl Error for PrecipitationValueError
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 PartialEq for PrecipitationValueError
impl PartialEq for PrecipitationValueError
impl Copy for PrecipitationValueError
impl StructuralPartialEq for PrecipitationValueError
Auto Trait Implementations§
impl Freeze for PrecipitationValueError
impl RefUnwindSafe for PrecipitationValueError
impl Send for PrecipitationValueError
impl Sync for PrecipitationValueError
impl Unpin for PrecipitationValueError
impl UnsafeUnpin for PrecipitationValueError
impl UnwindSafe for PrecipitationValueError
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