Struct zoneinfo_parse::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

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.

The rest of the timespans, as a vector of tuples, each containing:

  1. A transition instant at which the previous timespan ends and the next one begins, stored as a Unix timestamp;
  2. The actual timespan to transition into.

Trait Implementations

impl PartialEq for FixedTimespanSet
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for FixedTimespanSet
[src]

Formats the value using the given formatter.

impl Clone for FixedTimespanSet
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more