pub struct AirSpelling<'a> {
pub humidity: AirField<'a>,
pub temperature: AirField<'a>,
pub pressure: AirField<'a>,
pub altitude: AirField<'a>,
pub humidity_sent: f64,
pub temperature_text: String,
pub temperature_unit: TemperatureUnit,
pub temperature_origin: StationTemperatureOrigin,
pub pressure_text: String,
pub pressure_origin: StationPressureOrigin,
pub qnh_text: Option<String>,
pub altitude_unit: AltitudeUnit,
}Expand description
How one surface spells the station air it was given, so a refusal of that air reads in the surface’s own words: its field names, the humidity in the unit it was sent in, and the temperature and pressure the solve resolved, in the surface’s units with the unit named.
Fields§
§humidity: AirField<'a>The relative humidity.
temperature: AirField<'a>The station temperature.
pressure: AirField<'a>The station pressure.
altitude: AirField<'a>The station altitude, or, for a station a density altitude gave, the density altitude
(a density altitude no air has is refused at this field, in altitude_unit).
humidity_sent: f64The humidity as the surface was sent it, in its own unit (a percent, or the SI wire’s fraction).
temperature_text: StringThe station temperature the solve flies, with its unit: "212 °F", "373.15 K".
temperature_unit: TemperatureUnitThe unit the surface states a temperature in: the unit of temperature_text, in which a
refusal of a temperature at or below absolute zero states where absolute zero is, and a
refusal that blames the temperature states the range the humid-air formulas hold for.
temperature_origin: StationTemperatureOriginWhere the station temperature came from: a reading, named by temperature as the
reading it is (temperature = 214 °F), or a density altitude, named by temperature as
the reading that gave it (density_altitude gives a station temperature of ...).
pressure_text: StringThe station pressure the solve flies, with its unit: "29.92 inHg", "100000 Pa".
pressure_origin: StationPressureOriginWhere that pressure came from: a reading, the standard pressure at the altitude, a QNH reduced there, or a density altitude. It decides whether a station pressure outside the troposphere is the pressure’s fault, the altitude’s or the density altitude’s.
qnh_text: Option<String>When the pressure was given as a QNH, the QNH as the surface was sent it, with its unit
("1013.25 Pa", "5 hPa"); None otherwise. A refusal that names the pressure’s field
quotes this, the reading that was sent, and says it was reduced to pressure_text, never
the station pressure as if it had been sent.
altitude_unit: AltitudeUnitThe unit the surface states an altitude in: every altitude a refusal quotes (a pressure altitude, the troposphere’s bounds, the station altitude, where air aloft reaches 0 K).
Trait Implementations§
Source§impl<'a> Clone for AirSpelling<'a>
impl<'a> Clone for AirSpelling<'a>
Source§fn clone(&self) -> AirSpelling<'a>
fn clone(&self) -> AirSpelling<'a>
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl<'a> Debug for AirSpelling<'a>
impl<'a> Debug for AirSpelling<'a>
Source§impl<'a> PartialEq for AirSpelling<'a>
impl<'a> PartialEq for AirSpelling<'a>
impl<'a> StructuralPartialEq for AirSpelling<'a>
Auto Trait Implementations§
impl<'a> Freeze for AirSpelling<'a>
impl<'a> RefUnwindSafe for AirSpelling<'a>
impl<'a> Send for AirSpelling<'a>
impl<'a> Sync for AirSpelling<'a>
impl<'a> Unpin for AirSpelling<'a>
impl<'a> UnwindSafe for AirSpelling<'a>
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<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.