pub enum ForecastTimeUnit {
Show 14 variants
Minute,
Hour,
Day,
Month,
Year,
Decade,
Normal,
Century,
ThreeHours,
SixHours,
TwelveHours,
QuarterHour,
HalfHour,
Second,
}Expand description
Semantic forecast-time units shared across GRIB editions.
Raw unit codes are edition-specific. In particular, GRIB1 code 13 means
quarter-hour while GRIB2 code 13 means second.
Variants§
Minute
Hour
Day
Month
Year
Decade
Normal
Century
ThreeHours
SixHours
TwelveHours
QuarterHour
HalfHour
Second
Implementations§
Source§impl ForecastTimeUnit
impl ForecastTimeUnit
pub fn from_grib1_code(code: u8) -> Option<ForecastTimeUnit>
pub fn from_grib2_code(code: u8) -> Option<ForecastTimeUnit>
pub fn from_edition_and_code(edition: u8, code: u8) -> Option<ForecastTimeUnit>
Trait Implementations§
Source§impl Clone for ForecastTimeUnit
impl Clone for ForecastTimeUnit
Source§fn clone(&self) -> ForecastTimeUnit
fn clone(&self) -> ForecastTimeUnit
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 ForecastTimeUnit
impl Debug for ForecastTimeUnit
Source§impl PartialEq for ForecastTimeUnit
impl PartialEq for ForecastTimeUnit
impl Copy for ForecastTimeUnit
impl Eq for ForecastTimeUnit
impl StructuralPartialEq for ForecastTimeUnit
Auto Trait Implementations§
impl Freeze for ForecastTimeUnit
impl RefUnwindSafe for ForecastTimeUnit
impl Send for ForecastTimeUnit
impl Sync for ForecastTimeUnit
impl Unpin for ForecastTimeUnit
impl UnsafeUnpin for ForecastTimeUnit
impl UnwindSafe for ForecastTimeUnit
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