#[non_exhaustive]pub enum ProbabilityType {
Show 13 variants
BelowLowerLimit(ProbabilityLimit),
AboveUpperLimit(ProbabilityLimit),
BetweenLimits {
lower: ProbabilityLimit,
upper: ProbabilityLimit,
},
AboveLowerLimit(ProbabilityLimit),
BelowUpperLimit(ProbabilityLimit),
EqualLowerLimit(ProbabilityLimit),
AboveNormal,
NearNormal,
BelowNormal,
CategoricalBoolean,
Quantile,
Missing,
Other {
code: u8,
lower: Option<ProbabilityLimit>,
upper: Option<ProbabilityLimit>,
},
}Expand description
The event whose forecast probability is encoded by templates 4.5 and 4.9.
Known WMO event types carry exactly the limit values used by their
definition. ProbabilityType::Other preserves reserved, locally defined,
and noncanonical input without imposing semantics on its limits. The writer
accepts Other only for codes without a standard typed variant.
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.
BelowLowerLimit(ProbabilityLimit)
AboveUpperLimit(ProbabilityLimit)
BetweenLimits
AboveLowerLimit(ProbabilityLimit)
BelowUpperLimit(ProbabilityLimit)
EqualLowerLimit(ProbabilityLimit)
AboveNormal
NearNormal
BelowNormal
CategoricalBoolean
Quantile
Missing
Other
Implementations§
Source§impl ProbabilityType
impl ProbabilityType
pub const fn code(self) -> u8
pub const fn lower_limit(self) -> Option<ProbabilityLimit>
pub const fn upper_limit(self) -> Option<ProbabilityLimit>
Trait Implementations§
Source§impl Clone for ProbabilityType
impl Clone for ProbabilityType
Source§fn clone(&self) -> ProbabilityType
fn clone(&self) -> ProbabilityType
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for ProbabilityType
Source§impl Debug for ProbabilityType
impl Debug for ProbabilityType
impl Eq for ProbabilityType
Source§impl PartialEq for ProbabilityType
impl PartialEq for ProbabilityType
impl StructuralPartialEq for ProbabilityType
Auto Trait Implementations§
impl Freeze for ProbabilityType
impl RefUnwindSafe for ProbabilityType
impl Send for ProbabilityType
impl Sync for ProbabilityType
impl Unpin for ProbabilityType
impl UnsafeUnpin for ProbabilityType
impl UnwindSafe for ProbabilityType
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