AtmosphereErrorReason

Enum AtmosphereErrorReason 

Source
#[non_exhaustive]
pub enum AtmosphereErrorReason { NotFinite, HumidityPercentOutOfRange, HumidityFractionOutOfRange, AtOrBelowAbsoluteZero, NonPositivePressure, ImpossibleAir, DensityRatioOutOfRange, UniformDensityOutOfRange, UniformSpeedOfSoundOutOfRange, NonPositiveZoneThreshold, AirAloftBelowAbsoluteZero, NoAirAtDensityAltitude, }
Expand description

Why an atmosphere value was refused. Carried by AtmosphereError.

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.
§

NotFinite

The value is NaN or infinite.

§

HumidityPercentOutOfRange

A relative humidity percent outside [0, 100] by more than the sensor band, HUMIDITY_SENSOR_TOLERANCE_PERCENT: below -5 or above 105. It displays the band it enforces: “relative humidity must be a percent from 0 to 100 (a sensor reading from -5 to 105 is read as 0 or 100)”.

§

HumidityFractionOutOfRange

A relative humidity fraction outside [0, 1] by more than the sensor band: below -0.05 or above 1.05. It displays the band in fraction units: “relative humidity must be a fraction from 0 to 1 (0.5 = 50 %; a sensor reading from -0.05 to 1.05 is read as 0 or 1)”.

§

AtOrBelowAbsoluteZero

A temperature at or below absolute zero, -273.15 °C.

§

NonPositivePressure

A pressure at or below zero.

§

ImpossibleAir

Air that cannot exist: the stated humidity needs a water-vapour mole fraction of 1 or more, that is more vapour pressure than the air’s total pressure; or the air is humid above water’s critical point (647.096 K), where no saturation vapour pressure, and so no relative humidity, is defined; or, dry above that point, it is too hot for the CIPM-2007 density to stay finite and positive; or its pressure is so far beyond any air’s (above about 4e156 Pa) that the density does not either. Dry air at any lower temperature above absolute zero exists. The same refusal the atmosphere.density_altitude service makes.

§

DensityRatioOutOfRange

A station density ratio (density / 1.225 kg/m³) outside (0, 2).

§

UniformDensityOutOfRange

A uniform (direct-mode) air density outside [0, 2) kg/m³ (0 is a vacuum).

§

UniformSpeedOfSoundOutOfRange

A uniform (direct-mode) speed of sound at or below 200 m/s.

§

NonPositiveZoneThreshold

A downrange atmosphere zone whose until_distance_m is not above 0.

§

AirAloftBelowAbsoluteZero

Air that cannot exist aloft: from this station (or downrange zone) temperature the standard lapse takes the air to absolute zero, at an altitude the flight reaches. Every trajectory kernel refuses the flight at the step that gets there, with this reason on the temperature (AtmosphereError::field temperature_c, the governing air’s temperature); AtmosphereError::altitude_m is where the air reaches 0 K. A flight that stays below that height flies.

§

NoAirAtDensityAltitude

A density altitude no air has by the FAA rule its entry inverts (station_for_density_altitude): at its pressure altitude by that rule (AtmosphereError::altitude_m) the NWS pressure formula gives no finite pressure above 0 (at or above 145366.45 ft, 44308 m), or, with no temperature given, the rule’s standard temperature is at or below absolute zero (at or above 145286 ft, 44283 m). On the field density_altitude_m.

Trait Implementations§

Source§

impl Clone for AtmosphereErrorReason

Source§

fn clone(&self) -> AtmosphereErrorReason

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for AtmosphereErrorReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for AtmosphereErrorReason

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for AtmosphereErrorReason

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for AtmosphereErrorReason

Source§

fn eq(&self, other: &AtmosphereErrorReason) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for AtmosphereErrorReason

Source§

impl Eq for AtmosphereErrorReason

Source§

impl StructuralPartialEq for AtmosphereErrorReason

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. Read more
§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

§

fn equivalent(&self, key: &K) -> bool

Compare self to key and return true if they are equal.
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
§

impl<SS, SP> SupersetOf<SS> for SP
where SS: SubsetOf<SP>,

§

fn to_subset(&self) -> Option<SS>

The inverse inclusion map: attempts to construct self from the equivalent element of its superset. Read more
§

fn is_in_subset(&self) -> bool

Checks if self is actually part of its subset T (and can be converted to it).
§

fn to_subset_unchecked(&self) -> SS

Use with care! Same as self.to_subset but without any property checks. Always succeeds.
§

fn from_subset(element: &SS) -> SP

The inclusion map: converts self to the equivalent element of its superset.
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> Scalar for T
where T: 'static + Clone + PartialEq + Debug,