Enum parse_zoneinfo::line::Saving
source · pub enum Saving<'a> {
NoSaving,
OneOff(TimeSpec),
Multiple(&'a str),
}
Expand description
The amount of daylight saving time (DST) to apply to this timespan. This is a special type for a certain field in a zone line, which can hold different types of value.
Variants§
NoSaving
Just stick to the base offset.
OneOff(TimeSpec)
This amount of time should be saved while this timespan is in effect. (This is the equivalent to there being a single one-off rule with the given amount of time to save).
Multiple(&'a str)
All rules with the given name should apply while this timespan is in effect.
Trait Implementations§
source§impl<'a> PartialEq for Saving<'a>
impl<'a> PartialEq for Saving<'a>
impl<'a> Copy for Saving<'a>
impl<'a> StructuralPartialEq for Saving<'a>
Auto Trait Implementations§
impl<'a> Freeze for Saving<'a>
impl<'a> RefUnwindSafe for Saving<'a>
impl<'a> Send for Saving<'a>
impl<'a> Sync for Saving<'a>
impl<'a> Unpin for Saving<'a>
impl<'a> UnwindSafe for Saving<'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