[][src]Struct parse_zoneinfo::transitions::FixedTimespan

pub struct FixedTimespan {
    pub utc_offset: i64,
    pub dst_offset: i64,
    pub name: String,
}

An individual timespan with a fixed offset.

This mimics the FixedTimespan struct in datetime::cal::zone, except instead of “total offset” and “is DST” fields, it has separate UTC and DST fields. Also, the name is an owned String here instead of a slice.

Fields

utc_offset: i64

The number of seconds offset from UTC during this timespan.

dst_offset: i64

The number of extra daylight-saving seconds during this timespan.

name: String

The abbreviation in use during this timespan.

Methods

impl FixedTimespan[src]

pub fn total_offset(&self) -> i64[src]

The total offset in effect during this timespan.

Trait Implementations

impl Clone for FixedTimespan[src]

impl Debug for FixedTimespan[src]

impl PartialEq<FixedTimespan> for FixedTimespan[src]

impl StructuralPartialEq for FixedTimespan[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.