Enum libgweather::Sky
source · #[non_exhaustive]pub enum Sky {
Invalid,
Clear,
Broken,
Scattered,
Few,
Overcast,
Last,
}
Expand description
The sky and cloud visibility. 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().
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Invalid
value not available
Clear
sky completely clear, no clouds visible
Broken
sky mostly clear, few clouds
Scattered
sky mostly clear, patches of clouds
Few
few clouds, sky cloudy but patches of sky visible
Overcast
sky completely clouded, sun not visible
Last
the maximum value for the enumeration
Implementations§
source§impl Sky
impl Sky
pub fn to_str<'a>(self) -> &'a GStr
pub fn to_string_full(self, options: FormatOptions) -> GString
Trait Implementations§
source§impl<'a> FromValue<'a> for Sky
impl<'a> FromValue<'a> for Sky
§type Checker = GenericValueTypeChecker<Sky>
type Checker = GenericValueTypeChecker<Sky>
Value type checker.
source§unsafe fn from_value(value: &'a Value) -> Self
unsafe fn from_value(value: &'a Value) -> Self
Get the contained value from a
Value
. Read moresource§impl HasParamSpec for Sky
impl HasParamSpec for Sky
source§impl Ord for Sky
impl Ord for Sky
source§impl PartialOrd for Sky
impl PartialOrd for Sky
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl StaticType for Sky
impl StaticType for Sky
source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for Sky
impl Eq for Sky
impl StructuralPartialEq for Sky
Auto Trait Implementations§
impl Freeze for Sky
impl RefUnwindSafe for Sky
impl Send for Sky
impl Sync for Sky
impl Unpin for Sky
impl UnwindSafe for Sky
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
)source§impl<T> IntoClosureReturnValue for T
impl<T> IntoClosureReturnValue for T
fn into_closure_return_value(self) -> Option<Value>
source§impl<T> PropertyGet for Twhere
T: HasParamSpec,
impl<T> PropertyGet for Twhere
T: HasParamSpec,
source§impl<T> StaticTypeExt for Twhere
T: StaticType,
impl<T> StaticTypeExt for Twhere
T: StaticType,
source§fn ensure_type()
fn ensure_type()
Ensures that the type has been registered with the type system.
source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.