pub struct DstRule {
pub month: u32,
pub week: u32,
pub weekday: u32,
pub time_seconds: i64,
}Expand description
A POSIX-style DST transition rule: the week-th weekday of month, at time_seconds local.
week is 1..=5 (5 = the last occurrence); weekday is 0 = Sunday … 6 = Saturday. This is
the Mm.w.d form a TZ string uses (e.g. M3.2.0 = the 2nd Sunday of March), and it generates
one transition per year — enough to express any zone with a regular DST schedule.
Fields§
§month: u32§week: u32§weekday: u32§time_seconds: i64Trait Implementations§
impl Copy for DstRule
impl Eq for DstRule
impl StructuralPartialEq for DstRule
Auto Trait Implementations§
impl Freeze for DstRule
impl RefUnwindSafe for DstRule
impl Send for DstRule
impl Sync for DstRule
impl Unpin for DstRule
impl UnsafeUnpin for DstRule
impl UnwindSafe for DstRule
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