pub enum StationPressureOrigin {
Reading,
Standard,
Qnh,
DensityAltitude,
}Expand description
Where the station pressure a solve flies came from, so air that cannot exist at a station pressure outside the troposphere is blamed on the reading that put it there: the pressure when it was a station reading, the altitude when the pressure was the altitude’s.
Every surface decides it one way, through Self::of (or Self::resolving, from what a
presence-aware resolution was handed), or, for a station a density altitude gave,
Self::DensityAltitude.
Variants§
Reading
A station pressure reading, or a QNH that is itself outside the troposphere (hPa sent as pascals): the pressure is to blame.
Standard
No pressure was given: the station flies the ICAO standard pressure at its altitude, so the altitude is to blame (feet sent as metres).
Qnh
A QNH that is itself a plausible sea-level pressure, reduced to the station altitude: the altitude is to blame.
DensityAltitude
A density altitude’s station (station_for_density_altitude): the density altitude is
to blame. A surface names the derived pressure by the density altitude’s field,
so the refusal blames AirSpelling::pressure even if the altitude was overridden.
Implementations§
Source§impl StationPressureOrigin
impl StationPressureOrigin
Sourcepub fn of(given_hpa: Option<f64>, mode: PressureReferenceMode) -> Self
pub fn of(given_hpa: Option<f64>, mode: PressureReferenceMode) -> Self
The origin of a station pressure from what was given: given_hpa is the pressure as
given (a QNH before its reduction), or None when none was given and the station flies
the standard pressure at its altitude; mode says whether a given pressure is a QNH.
Sourcepub fn resolving(
pressure_hpa: f64,
altitude_m: f64,
mode: PressureReferenceMode,
presence: StationAtmospherePresence,
) -> Self
pub fn resolving( pressure_hpa: f64, altitude_m: f64, mode: PressureReferenceMode, presence: StationAtmospherePresence, ) -> Self
The origin of the pressure resolve_station_conditions_with_presence resolves from
these same inputs: a pressure the presence rule replaces with the ICAO standard at the
altitude (an omitted sea-level default at a real altitude) is the standard’s; any other
is the given one, a QNH or a reading.
Trait Implementations§
Source§impl Clone for StationPressureOrigin
impl Clone for StationPressureOrigin
Source§fn clone(&self) -> StationPressureOrigin
fn clone(&self) -> StationPressureOrigin
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for StationPressureOrigin
impl Debug for StationPressureOrigin
Source§impl Default for StationPressureOrigin
impl Default for StationPressureOrigin
Source§fn default() -> StationPressureOrigin
fn default() -> StationPressureOrigin
Source§impl PartialEq for StationPressureOrigin
impl PartialEq for StationPressureOrigin
impl Copy for StationPressureOrigin
impl Eq for StationPressureOrigin
impl StructuralPartialEq for StationPressureOrigin
Auto Trait Implementations§
impl Freeze for StationPressureOrigin
impl RefUnwindSafe for StationPressureOrigin
impl Send for StationPressureOrigin
impl Sync for StationPressureOrigin
impl Unpin for StationPressureOrigin
impl UnwindSafe for StationPressureOrigin
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
self to the equivalent element of its superset.