Enum parse_zoneinfo::line::Year
source · pub enum Year {
Minimum,
Maximum,
Number(i64),
}
Expand description
A year definition field.
A year has one of the following representations in a file:
min
orminimum
, the minimum year possible, for when a rule needs to apply up until the first rule with a specific year;max
ormaximum
, the maximum year possible, for when a rule needs to apply after the last rule with a specific year;- a year number, referring to a specific year.
Variants§
Minimum
The minimum year possible: min
or minimum
.
Maximum
The maximum year possible: max
or maximum
.
Number(i64)
A specific year number.
Trait Implementations§
source§impl PartialEq for Year
impl PartialEq for Year
impl Copy for Year
impl StructuralPartialEq for Year
Auto Trait Implementations§
impl Freeze for Year
impl RefUnwindSafe for Year
impl Send for Year
impl Sync for Year
impl Unpin for Year
impl UnwindSafe for Year
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