[][src]Struct parse_zoneinfo::transitions::FixedTimespanSet

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:

  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 Clone for FixedTimespanSet[src]

impl Debug for FixedTimespanSet[src]

impl PartialEq<FixedTimespanSet> for FixedTimespanSet[src]

impl StructuralPartialEq for FixedTimespanSet[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.