Enum zoneinfo_parse::table::Format [] [src]

pub enum Format {
    Constant(String),
    Alternate {
        standard: String,
        dst: String,
    },
    Placeholder(String),
}

The format string to generate a time zone abbreviation from.

Variants

A constant format, which remains the same throughout both standard and DST timespans.

An alternate format, such as “PST/PDT”, which changes between standard and DST timespans.

Fields of Alternate

Abbreviation to use during Standard Time.

Abbreviation to use during Summer Time.

A format with a placeholder %s, which uses the letters field in a RuleInfo to generate the time zone abbreviation.

Methods

impl Format
[src]

Convert the template into one of the Format variants. This can’t fail, as any syntax that doesn’t match one of the two formats will just be a ‘constant’ format.

Trait Implementations

impl PartialEq for Format
[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 Format
[src]

Formats the value using the given formatter.

impl Clone for Format
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more