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),
}
Sounding did not have a profile for pressure.
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.
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.
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.
Invalid negative value, such as speed which must be positive.
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Formats the value using the given formatter. Read more
Deprecated since 1.33.0:
replaced by Error::source, which can support downcasting
The lower-level cause of this error, if any. Read more
The lower-level source of this error, if any. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
Converts the given value to a String
. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static