pub struct Rule {
pub start: DayTime,
pub end: DayTime,
}Expand description
A time zone transition rule.
This spells out a “range” of datetimes within a calendar year that should get a special daylight saving time offset from UTC.
Fields§
§start: DayTimeThe start of the time zone transition (e.g., daylight saving time).
end: DayTimeThe end of the time zone transition (e.g., daylight saving time).
Trait Implementations§
impl Copy for Rule
impl Eq for Rule
impl StructuralPartialEq for Rule
Auto Trait Implementations§
impl Freeze for Rule
impl RefUnwindSafe for Rule
impl Send for Rule
impl Sync for Rule
impl Unpin for Rule
impl UnsafeUnpin for Rule
impl UnwindSafe for Rule
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