[][src]Struct parse_zoneinfo::table::Table

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]

pub 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 Debug for Table[src]

impl Default for Table[src]

impl PartialEq<Table> for Table[src]

impl StructuralPartialEq for Table[src]

impl Structure for Table[src]

impl TableTransitions for Table[src]

Auto Trait Implementations

impl RefUnwindSafe for Table

impl Send for Table

impl Sync for Table

impl Unpin for Table

impl UnwindSafe for Table

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, 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.