Struct parse_zoneinfo::transitions::FixedTimespanSet
[−]
[src]
pub struct FixedTimespanSet {
pub first: FixedTimespan,
pub rest: Vec<(i64, FixedTimespan)>,
}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 Vecs 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
impl PartialEq for FixedTimespanSet[src]
fn eq(&self, __arg_0: &FixedTimespanSet) -> bool
This method tests for self and other values to be equal, and is used by ==. Read more
fn ne(&self, __arg_0: &FixedTimespanSet) -> bool
This method tests for !=.
impl Debug for FixedTimespanSet[src]
impl Clone for FixedTimespanSet[src]
fn clone(&self) -> FixedTimespanSet
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)1.0.0
Performs copy-assignment from source. Read more