XPLMWeatherInfo_t

Struct XPLMWeatherInfo_t 

Source
#[repr(C)]
pub struct XPLMWeatherInfo_t {
Show 18 fields pub structSize: c_int, pub temperature_alt: f32, pub dewpoint_alt: f32, pub pressure_alt: f32, pub precip_rate_alt: f32, pub wind_dir_alt: f32, pub wind_spd_alt: f32, pub turbulence_alt: f32, pub wave_height: f32, pub wave_length: f32, pub wave_dir: c_int, pub wave_speed: f32, pub visibility: f32, pub precip_rate: f32, pub thermal_climb: f32, pub pressure_sl: f32, pub wind_layers: [XPLMWeatherInfoWinds_t; 13], pub cloud_layers: [XPLMWeatherInfoClouds_t; 3],
}
Expand description

XPLMWeatherInfo_t

Basic weather conditions at a specific point.

Fields§

§structSize: c_int

The size of the struct.

§temperature_alt: f32

Temperature at the given altitude in Celsius

§dewpoint_alt: f32

Dewpoint at the given altitude in Celsius

§pressure_alt: f32

Pressure at the given altitude in Pascals

§precip_rate_alt: f32

Precipitation rate at the given altitude

§wind_dir_alt: f32

Wind direction at the given altitude

§wind_spd_alt: f32

Wind speed at the given altitude, meters/sec

§turbulence_alt: f32

Turbulence ratio at the given altitude

§wave_height: f32

Height of water waves in meters

§wave_length: f32

Length of water waves in meters

§wave_dir: c_int

Direction from which water waves are coming

§wave_speed: f32

Speed of wave advance in meters/sec

§visibility: f32

Base visibility at 0 altitude, meters

§precip_rate: f32

Base precipitation ratio at 0 altitude

§thermal_climb: f32

Climb rate due to thermals, meters/sec

§pressure_sl: f32

Pressure at 0 altitude in Pascals

§wind_layers: [XPLMWeatherInfoWinds_t; 13]

Defined wind layers. Not all layers are always defined.

§cloud_layers: [XPLMWeatherInfoClouds_t; 3]

Defined cloud layers. Not all layers are always defined.

Trait Implementations§

Source§

impl Clone for XPLMWeatherInfo_t

Source§

fn clone(&self) -> XPLMWeatherInfo_t

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 Debug for XPLMWeatherInfo_t

Source§

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

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

impl Copy for XPLMWeatherInfo_t

Auto Trait Implementations§

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