[−][src]Struct parse_zoneinfo::transitions::FixedTimespan
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: i64The number of seconds offset from UTC during this timespan.
dst_offset: i64The number of extra daylight-saving seconds during this timespan.
name: StringThe 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]
fn clone(&self) -> FixedTimespan[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Debug for FixedTimespan[src]
impl PartialEq<FixedTimespan> for FixedTimespan[src]
fn eq(&self, other: &FixedTimespan) -> bool[src]
fn ne(&self, other: &FixedTimespan) -> bool[src]
impl StructuralPartialEq for FixedTimespan[src]
Auto Trait Implementations
impl RefUnwindSafe for FixedTimespan
impl Send for FixedTimespan
impl Sync for FixedTimespan
impl Unpin for FixedTimespan
impl UnwindSafe for FixedTimespan
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>,