Enum PrecipitationKind
pub enum PrecipitationKind {
Rain,
Drizzle,
Snow,
Sleet,
Hail,
FreezingRain,
IcePellets,
Graupel,
Mixed,
None,
Unknown,
Custom(String),
}Expand description
Stable precipitation kind vocabulary.
Variants§
Rain
Rain.
Drizzle
Drizzle.
Snow
Snow.
Sleet
Sleet.
Hail
Hail.
FreezingRain
Freezing rain.
IcePellets
Ice pellets.
Graupel
Graupel.
Mixed
Mixed precipitation.
None
No precipitation.
Unknown
Unknown precipitation kind.
Custom(String)
Caller-defined precipitation kind.
Trait Implementations§
§impl Clone for PrecipitationKind
impl Clone for PrecipitationKind
§fn clone(&self) -> PrecipitationKind
fn clone(&self) -> PrecipitationKind
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for PrecipitationKind
impl Debug for PrecipitationKind
§impl Display for PrecipitationKind
impl Display for PrecipitationKind
§impl FromStr for PrecipitationKind
impl FromStr for PrecipitationKind
§type Err = PrecipitationKindParseError
type Err = PrecipitationKindParseError
The associated error which can be returned from parsing.
§fn from_str(
value: &str,
) -> Result<PrecipitationKind, <PrecipitationKind as FromStr>::Err>
fn from_str( value: &str, ) -> Result<PrecipitationKind, <PrecipitationKind as FromStr>::Err>
Parses a string
s to return a value of this type. Read more§impl Hash for PrecipitationKind
impl Hash for PrecipitationKind
§impl Ord for PrecipitationKind
impl Ord for PrecipitationKind
§fn cmp(&self, other: &PrecipitationKind) -> Ordering
fn cmp(&self, other: &PrecipitationKind) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
§impl PartialEq for PrecipitationKind
impl PartialEq for PrecipitationKind
§impl PartialOrd for PrecipitationKind
impl PartialOrd for PrecipitationKind
impl Eq for PrecipitationKind
impl StructuralPartialEq for PrecipitationKind
Auto Trait Implementations§
impl Freeze for PrecipitationKind
impl RefUnwindSafe for PrecipitationKind
impl Send for PrecipitationKind
impl Sync for PrecipitationKind
impl Unpin for PrecipitationKind
impl UnsafeUnpin for PrecipitationKind
impl UnwindSafe for PrecipitationKind
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