#[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.
This struct has no presence channel. Through the struct exports, 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. Since 0.49.0 the three *_with_station_presence exports take a
presence bit set beside it (BALLISTICS_STATION_TEMPERATURE_SUPPLIED,
BALLISTICS_STATION_PRESSURE_SUPPLIED): a field whose bit is set flies as given, even at
a sentinel value. See this module’s documentation.
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 UnsafeUnpin 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
Source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
Source§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 moreSource§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).Source§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.Source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.