Struct zoneinfo_parse::transitions::FixedTimespan
[−]
[src]
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]
fn total_offset(&self) -> i64
The total offset in effect during this timespan.
Trait Implementations
impl PartialEq for FixedTimespan
[src]
fn eq(&self, __arg_0: &FixedTimespan) -> bool
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &FixedTimespan) -> bool
This method tests for !=
.
impl Debug for FixedTimespan
[src]
impl Clone for FixedTimespan
[src]
fn clone(&self) -> FixedTimespan
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more