Struct parse_zoneinfo::transitions::FixedTimespanSet
source · pub struct FixedTimespanSet {
pub first: FixedTimespan,
pub rest: Vec<(i64, FixedTimespan)>,
}
Expand description
A set of timespans, separated by the instances at which the timespans change over. There will always be one more timespan than transitions.
This mimics the FixedTimespanSet
struct in datetime::cal::zone
,
except it uses owned Vec
s instead of slices.
Fields§
§first: FixedTimespan
The first timespan, which is assumed to have been in effect up until the initial transition instant (if any). Each set has to have at least one timespan.
rest: Vec<(i64, FixedTimespan)>
The rest of the timespans, as a vector of tuples, each containing:
- A transition instant at which the previous timespan ends and the next one begins, stored as a Unix timestamp;
- The actual timespan to transition into.
Trait Implementations§
source§impl Clone for FixedTimespanSet
impl Clone for FixedTimespanSet
source§fn clone(&self) -> FixedTimespanSet
fn clone(&self) -> FixedTimespanSet
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for FixedTimespanSet
impl Debug for FixedTimespanSet
source§impl PartialEq for FixedTimespanSet
impl PartialEq for FixedTimespanSet
source§fn eq(&self, other: &FixedTimespanSet) -> bool
fn eq(&self, other: &FixedTimespanSet) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for FixedTimespanSet
Auto Trait Implementations§
impl Freeze for FixedTimespanSet
impl RefUnwindSafe for FixedTimespanSet
impl Send for FixedTimespanSet
impl Sync for FixedTimespanSet
impl Unpin for FixedTimespanSet
impl UnwindSafe for FixedTimespanSet
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