Enum parse_zoneinfo::table::Saving
source · pub enum Saving {
NoSaving,
OneOff(i64),
Multiple(String),
}
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.
This is the owned version of the Saving
type in the line
module.
Variants§
NoSaving
Just stick to the base offset.
OneOff(i64)
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(String)
All rules with the given name should apply while this timespan is in effect.
Trait Implementations§
source§impl PartialEq for Saving
impl PartialEq for Saving
impl StructuralPartialEq for Saving
Auto Trait Implementations§
impl Freeze for Saving
impl RefUnwindSafe for Saving
impl Send for Saving
impl Sync for Saving
impl Unpin for Saving
impl UnwindSafe for Saving
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