#[repr(u8)]pub enum PrecipType {
Show 38 variants
None = 0,
Drizzle = 50,
LightDrizzle = 51,
ModerateDrizzle = 52,
HeavyDrizzle = 53,
LightFreezingDrizzle = 54,
ModerateFreezingDrizzle = 55,
HeavyFreezingDrizzle = 56,
LightDrizzleAndRain = 57,
ModerateDrizzleAndRain = 58,
Rain = 60,
LightRain = 61,
ModerateRain = 62,
HeavyRain = 63,
LightFreezingRain = 64,
ModerateFreezingRain = 65,
HeavyFreezingRain = 66,
LightRainAndSnow = 67,
ModerateRainAndSnow = 68,
Snow = 70,
LightSnow = 71,
ModerateSnow = 72,
HeavySnow = 73,
LightIcePellets = 74,
ModerateIcePellets = 75,
HeavyIcePellets = 76,
SnowGrains = 77,
IceCrystals = 78,
Showers = 80,
LightRainShowers = 81,
ModerateRainShowers = 82,
HeavyRainShowers = 83,
ViolentRainShowers = 84,
LightSnowShowers = 85,
ModerateSnowShowers = 86,
HeavySnowShowers = 87,
Hail = 89,
Unknown = 100,
}
Expand description
Precipitation type enum. Values are meant to correspond to the code values from table 4680 in the WMO Manual On Codes Vol I.1 Part A, Alphanumeric Codes.
Variants§
None = 0
Drizzle = 50
LightDrizzle = 51
ModerateDrizzle = 52
HeavyDrizzle = 53
LightFreezingDrizzle = 54
ModerateFreezingDrizzle = 55
HeavyFreezingDrizzle = 56
LightDrizzleAndRain = 57
ModerateDrizzleAndRain = 58
Rain = 60
LightRain = 61
ModerateRain = 62
HeavyRain = 63
LightFreezingRain = 64
ModerateFreezingRain = 65
HeavyFreezingRain = 66
LightRainAndSnow = 67
ModerateRainAndSnow = 68
Snow = 70
LightSnow = 71
ModerateSnow = 72
HeavySnow = 73
LightIcePellets = 74
ModerateIcePellets = 75
HeavyIcePellets = 76
SnowGrains = 77
IceCrystals = 78
Showers = 80
LightRainShowers = 81
ModerateRainShowers = 82
HeavyRainShowers = 83
ViolentRainShowers = 84
LightSnowShowers = 85
ModerateSnowShowers = 86
HeavySnowShowers = 87
Hail = 89
Unknown = 100
Trait Implementations§
Source§impl Clone for PrecipType
impl Clone for PrecipType
Source§fn clone(&self) -> PrecipType
fn clone(&self) -> PrecipType
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 moreSource§impl Debug for PrecipType
impl Debug for PrecipType
Source§impl Display for PrecipType
impl Display for PrecipType
Source§impl From<u8> for PrecipType
impl From<u8> for PrecipType
Source§impl Hash for PrecipType
impl Hash for PrecipType
Source§impl IntoEnumIterator for PrecipType
impl IntoEnumIterator for PrecipType
Source§impl Ord for PrecipType
impl Ord for PrecipType
Source§fn cmp(&self, other: &PrecipType) -> Ordering
fn cmp(&self, other: &PrecipType) -> 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
Source§impl PartialEq for PrecipType
impl PartialEq for PrecipType
Source§impl PartialOrd for PrecipType
impl PartialOrd for PrecipType
impl Copy for PrecipType
impl Eq for PrecipType
impl StructuralPartialEq for PrecipType
Auto Trait Implementations§
impl Freeze for PrecipType
impl RefUnwindSafe for PrecipType
impl Send for PrecipType
impl Sync for PrecipType
impl Unpin for PrecipType
impl UnwindSafe for PrecipType
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more