AirSpelling

Struct AirSpelling 

Source
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: f64

The humidity as the surface was sent it, in its own unit (a percent, or the SI wire’s fraction).

§temperature_text: String

The station temperature the solve flies, with its unit: "212 °F", "373.15 K".

§temperature_unit: TemperatureUnit

The 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: StationTemperatureOrigin

Where 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: String

The station pressure the solve flies, with its unit: "29.92 inHg", "100000 Pa".

§pressure_origin: StationPressureOrigin

Where 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: AltitudeUnit

The 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>

Source§

fn clone(&self) -> AirSpelling<'a>

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<'a> Debug for AirSpelling<'a>

Source§

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

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

impl<'a> PartialEq for AirSpelling<'a>

Source§

fn eq(&self, other: &AirSpelling<'a>) -> 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<'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> 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
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, 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,