Struct parse_zoneinfo::line::ZoneInfo
source · pub struct ZoneInfo<'a> {
pub utc_offset: TimeSpec,
pub saving: Saving<'a>,
pub format: &'a str,
pub time: Option<ChangeTime>,
}
Expand description
The information contained in both zone lines and zone continuation lines.
Fields§
§utc_offset: TimeSpec
The amount of time that needs to be added to UTC to get the standard time in this zone.
saving: Saving<'a>
The name of all the rules that should apply in the time zone, or the amount of time to add.
format: &'a str
The format for time zone abbreviations, with %s
as the string marker.
time: Option<ChangeTime>
The time at which the rules change for this location, or None
if
these rules are in effect until the end of time (!).
Trait Implementations§
source§impl<'a> PartialEq for ZoneInfo<'a>
impl<'a> PartialEq for ZoneInfo<'a>
impl<'a> Copy for ZoneInfo<'a>
impl<'a> StructuralPartialEq for ZoneInfo<'a>
Auto Trait Implementations§
impl<'a> Freeze for ZoneInfo<'a>
impl<'a> RefUnwindSafe for ZoneInfo<'a>
impl<'a> Send for ZoneInfo<'a>
impl<'a> Sync for ZoneInfo<'a>
impl<'a> Unpin for ZoneInfo<'a>
impl<'a> UnwindSafe for ZoneInfo<'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