pub enum WindValueError {
NonFiniteSpeed(f64),
NegativeSpeed(f64),
NonFiniteDirection(f64),
DirectionOutOfRange(f64),
BeaufortOutOfRange(u8),
}Expand description
Errors returned by wind constructors.
Variants§
NonFiniteSpeed(f64)
Wind speed or gust must be finite.
NegativeSpeed(f64)
Wind speed or gust cannot be negative.
NonFiniteDirection(f64)
Wind direction must be finite.
DirectionOutOfRange(f64)
Wind direction must stay in 0.0..360.0.
BeaufortOutOfRange(u8)
Beaufort scale must stay in 0..=12.
Trait Implementations§
Source§impl Clone for WindValueError
impl Clone for WindValueError
Source§fn clone(&self) -> WindValueError
fn clone(&self) -> WindValueError
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 moreSource§impl Debug for WindValueError
impl Debug for WindValueError
Source§impl Display for WindValueError
impl Display for WindValueError
Source§impl Error for WindValueError
impl Error for WindValueError
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 PartialEq for WindValueError
impl PartialEq for WindValueError
impl Copy for WindValueError
impl StructuralPartialEq for WindValueError
Auto Trait Implementations§
impl Freeze for WindValueError
impl RefUnwindSafe for WindValueError
impl Send for WindValueError
impl Sync for WindValueError
impl Unpin for WindValueError
impl UnsafeUnpin for WindValueError
impl UnwindSafe for WindValueError
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