Enum sounding_validate::ValidationError
[−]
[src]
pub enum ValidationError { NoPressureProfile, InvalidVectorLength(&'static str, usize, usize), PressureNotDecreasingWithHeight, TemperatureLessThanWetBulb(f64, f64), TemperatureLessThanDewPoint(f64, f64), WetBulbLessThanDewPoint(f64, f64), InvalidNegativeValue(&'static str, f64), InvalidWindDirection(f64), }
Validation errors.
Variants
NoPressureProfile
Sounding did not have a profile for pressure.
InvalidVectorLength(&'static str, usize, usize)
One of the profiles had a vector length that did not match the length of the pressure
profile vector. This is required because pressure is the vertical coordinate. The string is
the name of the profile, the first usize
is the length of that profile, and the second
usize
is the length it should have been.
PressureNotDecreasingWithHeight
Pressure not decreasing with height. This also checks that geopotential increases "with height". It assumes the vectors are sorted with values from the lowest level to the highest level above ground.
TemperatureLessThanWetBulb(f64, f64)
Checks the required relationship between temperature and wet bulb.
TemperatureLessThanDewPoint(f64, f64)
Checks the required relationship between temperature and dew point.
WetBulbLessThanDewPoint(f64, f64)
Checks the required relationship between wet bulb and dew point.
InvalidNegativeValue(&'static str, f64)
Invalid negative value, such as speed which must be positive.
InvalidWindDirection(f64)
Invalid wind direction.
Trait Implementations
impl Clone for ValidationError
[src]
fn clone(&self) -> ValidationError
[src]
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Copy for ValidationError
[src]
impl Debug for ValidationError
[src]
fn fmt(&self, __arg_0: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl Fail for ValidationError
[src]
fn cause(&self) -> Option<&Fail>
[src]
Returns a reference to the underlying cause of this failure, if it is an error that wraps other errors. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
Returns a reference to the Backtrace
carried by this failure, if it carries one. Read more
fn context<D>(self, context: D) -> Context<D> where
D: Display + Send + Sync + 'static,
[src]
D: Display + Send + Sync + 'static,
Provides context for this failure. Read more
fn compat(self) -> Compat<Self>
[src]
Wraps this failure in a compatibility wrapper that implements std::error::Error
. Read more
fn causes(&self) -> Causes
[src]
Returns a iterator over the causes of this Fail
with itself as the first item and the root_cause
as the final item. Read more
fn root_cause(&self) -> &(Fail + 'static)
[src]
Returns the "root cause" of this Fail
- the last value in the cause chain which does not return an underlying cause
. Read more
impl Display for ValidationError
[src]
fn fmt(&self, f: &mut Formatter) -> Result
[src]
Formats the value using the given formatter. Read more
impl PartialEq for ValidationError
[src]
fn eq(&self, __arg_0: &ValidationError) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &ValidationError) -> bool
[src]
This method tests for !=
.