Enum parse_zoneinfo::line::ChangeTime
source · pub enum ChangeTime {
UntilYear(Year),
UntilMonth(Year, Month),
UntilDay(Year, Month, DaySpec),
UntilTime(Year, Month, DaySpec, TimeSpecAndType),
}
Expand description
The time at which the rules change for a location.
This is described with as few units as possible: a change that occurs at the beginning of the year lists only the year, a change that occurs on a particular day has to list the year, month, and day, and one that occurs at a particular second has to list everything.
Variants§
UntilYear(Year)
The earliest point in a particular year.
UntilMonth(Year, Month)
The earliest point in a particular month.
UntilDay(Year, Month, DaySpec)
The earliest point in a particular day.
UntilTime(Year, Month, DaySpec, TimeSpecAndType)
The earliest point in a particular hour, minute, or second.
Implementations§
source§impl ChangeTime
impl ChangeTime
Trait Implementations§
source§impl Clone for ChangeTime
impl Clone for ChangeTime
source§fn clone(&self) -> ChangeTime
fn clone(&self) -> ChangeTime
Returns a copy 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 ChangeTime
impl Debug for ChangeTime
source§impl PartialEq for ChangeTime
impl PartialEq for ChangeTime
source§fn eq(&self, other: &ChangeTime) -> bool
fn eq(&self, other: &ChangeTime) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ChangeTime
impl StructuralPartialEq for ChangeTime
Auto Trait Implementations§
impl Freeze for ChangeTime
impl RefUnwindSafe for ChangeTime
impl Send for ChangeTime
impl Sync for ChangeTime
impl Unpin for ChangeTime
impl UnwindSafe for ChangeTime
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