#[non_exhaustive]pub enum AtmosError {
Domain {
what: &'static str,
value: f64,
},
NoLevels,
EmptyGustField,
HeightsNotIncreasing {
index: usize,
},
IncompleteColumn {
index: usize,
column: &'static str,
},
PressureNotDecreasing {
index: usize,
pressure_pa: f64,
below_pa: f64,
},
MissingBasePressure,
}Expand description
An error from an atmosphere or wind model: an input outside a model’s domain, or a profile that can’t be built.
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.
Domain
An input outside a model’s domain, such as a negative pressure or a non-finite height.
NoLevels
A sounding profile or a layered wind was given no levels.
EmptyGustField
A gust field has no samples.
HeightsNotIncreasing
Profile heights must strictly increase.
IncompleteColumn
An optional column (humidity or wind) is given on some levels but not on this one.
PressureNotDecreasing
A sounding level’s pressure is not below the pressure of the level beneath it. Pressure must fall with height; a pressure in hPa given as Pa is the usual cause.
Fields
MissingBasePressure
The lowest level of a sounding must give its pressure; the levels above may be filled in hydrostatically.
Trait Implementations§
Source§impl Clone for AtmosError
impl Clone for AtmosError
Source§fn clone(&self) -> AtmosError
fn clone(&self) -> AtmosError
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 moreSource§impl Debug for AtmosError
impl Debug for AtmosError
Source§impl Display for AtmosError
impl Display for AtmosError
Source§impl Error for AtmosError
impl Error for AtmosError
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 AtmosError
impl PartialEq for AtmosError
Source§fn eq(&self, other: &AtmosError) -> bool
fn eq(&self, other: &AtmosError) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for AtmosError
Auto Trait Implementations§
impl Freeze for AtmosError
impl RefUnwindSafe for AtmosError
impl Send for AtmosError
impl Sync for AtmosError
impl Unpin for AtmosError
impl UnsafeUnpin for AtmosError
impl UnwindSafe for AtmosError
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