[−][src]Struct parse_zoneinfo::transitions::FixedTimespanSet
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: FixedTimespanThe 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 Clone for FixedTimespanSet[src]
fn clone(&self) -> FixedTimespanSet[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for FixedTimespanSet[src]
impl PartialEq<FixedTimespanSet> for FixedTimespanSet[src]
fn eq(&self, other: &FixedTimespanSet) -> bool[src]
fn ne(&self, other: &FixedTimespanSet) -> bool[src]
impl StructuralPartialEq for FixedTimespanSet[src]
Auto Trait Implementations
impl RefUnwindSafe for FixedTimespanSet
impl Send for FixedTimespanSet
impl Sync for FixedTimespanSet
impl Unpin for FixedTimespanSet
impl UnwindSafe for FixedTimespanSet
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,