#[repr(C)]pub struct FFIAtmosphericConditions {
pub temperature: c_double,
pub pressure: c_double,
pub humidity: c_double,
pub altitude: c_double,
}Expand description
Station atmosphere for the C ABI.
temperature and pressure are resolved through the LEGACY DEFAULT SENTINELS: at a
nonzero altitude, 15 °C and/or 1013.25 hPa mean “omitted, use the ICAO standard at this
altitude” rather than a literal station reading. This struct has no presence channel, so
that sentinel is the only way a C caller can express omission — see this module’s
documentation for why solve-json deliberately does NOT behave this way, and for the size
of the resulting divergence.
Fields§
§temperature: c_double§pressure: c_double§humidity: c_double§altitude: c_doubleAuto Trait Implementations§
impl Freeze for FFIAtmosphericConditions
impl RefUnwindSafe for FFIAtmosphericConditions
impl Send for FFIAtmosphericConditions
impl Sync for FFIAtmosphericConditions
impl Unpin for FFIAtmosphericConditions
impl UnwindSafe for FFIAtmosphericConditions
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
Mutably borrows from an owned value. Read more
§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>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
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
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
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.