Struct libgweather::Conditions
source · pub struct Conditions { /* private fields */ }
Expand description
A convenient way to describe the current or forecast weather phenomenon, if significant, and its associated modifier. If the value is not significant, the weather conditions are described by gweather_info_get_sky() instead.
In general it is discouraged to use this value directly to compute the forecast icon: applications should instead use gweather_info_get_icon_name() or gweather_info_get_symbolic_icon_name().
GLib type: Inline allocated boxed type with stack copy semantics.
Implementations§
source§impl Conditions
impl Conditions
pub fn as_ptr(&self) -> *mut GWeatherConditions
sourcepub unsafe fn from_glib_ptr_borrow<'a>(
ptr: *const GWeatherConditions,
) -> &'a Self
pub unsafe fn from_glib_ptr_borrow<'a>( ptr: *const GWeatherConditions, ) -> &'a Self
Borrows the underlying C value.
sourcepub unsafe fn from_glib_ptr_borrow_mut<'a>(
ptr: *mut GWeatherConditions,
) -> &'a mut Self
pub unsafe fn from_glib_ptr_borrow_mut<'a>( ptr: *mut GWeatherConditions, ) -> &'a mut Self
Borrows the underlying C value mutably.
source§impl Conditions
impl Conditions
pub fn new( significant: bool, phenomenon: ConditionPhenomenon, qualifier: ConditionQualifier, ) -> Self
pub fn significant(&self) -> bool
pub fn phenomenon(&self) -> ConditionPhenomenon
pub fn qualifier(&self) -> ConditionQualifier
pub fn to_str(&mut self) -> GString
pub fn to_str_full(&mut self, options: &FormatOptions) -> GString
Trait Implementations§
source§impl Clone for Conditions
impl Clone for Conditions
impl Copy for Conditions
Auto Trait Implementations§
impl Freeze for Conditions
impl RefUnwindSafe for Conditions
impl Send for Conditions
impl Sync for Conditions
impl Unpin for Conditions
impl UnwindSafe for Conditions
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<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)