Struct parse_zoneinfo::table::RuleInfo [] [src]

pub struct RuleInfo {
    pub from_year: Year,
    pub to_year: Option<Year>,
    pub month: Month,
    pub day: DaySpec,
    pub time: i64,
    pub time_type: TimeType,
    pub time_to_add: i64,
    pub letters: Option<String>,
}

An owned rule definition line.

This mimics the Rule struct in the line module, only its uses owned Strings instead of string slices, and has had some pre-processing applied to it.

Fields

The year that this rule starts applying.

The year that this rule finishes applying, inclusive, or None if it applies up until the end of this timespan.

The month it applies on.

The day it applies on.

The exact time it applies on.

The type of time that time is.

The amount of time to save.

Any extra letters that should be added to this time zone’s abbreviation, in place of %s.

Methods

impl RuleInfo
[src]

Returns whether this rule is in effect during the given year.

Trait Implementations

impl PartialEq for RuleInfo
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Debug for RuleInfo
[src]

Formats the value using the given formatter.

impl<'line> From<Rule<'line>> for RuleInfo
[src]

Performs the conversion.