pub struct PosixTz<'a> {
pub std_abbrev: &'a str,
pub std_offset: i32,
pub dst_abbrev: &'a str,
pub dst_offset: i32,
pub start: TransitionRule,
pub end: TransitionRule,
}Expand description
A parsed POSIX-style TZ string, e.g. EST5EDT,M3.2.0,M11.1.0.
Fields§
§std_abbrev: &'a strStandard time abbreviation.
std_offset: i32Standard time UTC offset in seconds (positive = east of UTC).
dst_abbrev: &'a strDST abbreviation; empty if the rule defines no daylight saving time.
dst_offset: i32DST UTC offset in seconds (positive = east of UTC).
start: TransitionRuleRule for the standard → DST transition.
end: TransitionRuleRule for the DST → standard transition.
Implementations§
Trait Implementations§
impl<'a> Copy for PosixTz<'a>
impl<'a> Eq for PosixTz<'a>
Source§impl<'a> PartialEq for PosixTz<'a>
impl<'a> PartialEq for PosixTz<'a>
impl<'a> StructuralPartialEq for PosixTz<'a>
Auto Trait Implementations§
impl<'a> Freeze for PosixTz<'a>
impl<'a> RefUnwindSafe for PosixTz<'a>
impl<'a> Send for PosixTz<'a>
impl<'a> Sync for PosixTz<'a>
impl<'a> Unpin for PosixTz<'a>
impl<'a> UnsafeUnpin for PosixTz<'a>
impl<'a> UnwindSafe for PosixTz<'a>
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