[][src]Enum sounding_validate::ValidationError

pub enum ValidationError {
    NoPressureProfile,
    InvalidVectorLength(&'static strusizeusize),
    PressureNotDecreasingWithHeight,
    TemperatureLessThanWetBulb(f64f64),
    TemperatureLessThanDewPoint(f64f64),
    WetBulbLessThanDewPoint(f64f64),
    InvalidNegativeValue(&'static strf64),
    InvalidWindDirection(f64),
}

Validation errors.

Variants

NoPressureProfile

Sounding did not have a profile for pressure.

InvalidVectorLength(&'static strusizeusize)

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(f64f64)

Checks the required relationship between temperature and wet bulb.

TemperatureLessThanDewPoint(f64f64)

Checks the required relationship between temperature and dew point.

WetBulbLessThanDewPoint(f64f64)

Checks the required relationship between wet bulb and dew point.

InvalidNegativeValue(&'static strf64)

Invalid negative value, such as speed which must be positive.

InvalidWindDirection(f64)

Invalid wind direction.

Trait Implementations

impl Clone for ValidationError[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl PartialEq<ValidationError> for ValidationError[src]

impl Copy for ValidationError[src]

impl Display for ValidationError[src]

impl Debug for ValidationError[src]

impl Error for ValidationError[src]

fn description(&self) -> &str1.0.0[src]

This method is soft-deprecated. Read more

fn cause(&self) -> Option<&dyn Error>1.0.0[src]

Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

The lower-level cause of this error, if any. Read more

fn source(&self) -> Option<&(dyn Error + 'static)>1.30.0[src]

The lower-level source of this error, if any. Read more

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]