Struct parse_zoneinfo::table::Table
[−]
[src]
pub struct Table { pub rulesets: HashMap<String, Vec<RuleInfo>>, pub zonesets: HashMap<String, Vec<ZoneInfo>>, pub links: HashMap<String, String>, }
A table of all the data in one or more zoneinfo files.
Fields
rulesets: HashMap<String, Vec<RuleInfo>>
Mapping of ruleset names to rulesets.
zonesets: HashMap<String, Vec<ZoneInfo>>
Mapping of zoneset names to zonesets.
links: HashMap<String, String>
Mapping of link timezone names, to the names they link to.
Methods
impl Table
[src]
fn get_zoneset(&self, zone_name: &str) -> Option<&[ZoneInfo]>
[src]
Tries to find the zoneset with the given name by looking it up in either the zonesets map or the links map.
Trait Implementations
impl PartialEq for Table
[src]
fn eq(&self, __arg_0: &Table) -> bool
[src]
This method tests for self
and other
values to be equal, and is used by ==
. Read more
fn ne(&self, __arg_0: &Table) -> bool
[src]
This method tests for !=
.
impl Debug for Table
[src]
impl Default for Table
[src]
impl TableTransitions for Table
[src]
fn timespans(&self, zone_name: &str) -> Option<FixedTimespanSet>
[src]
Computes a fixed timespan set for the timezone with the given name. Returns None
if the table doesn’t contain a time zone with that name. Read more
impl Structure for Table
[src]
fn structure(&self) -> TableStructure
[src]
Returns an iterator over the structure of this table.