Module zoneinfo_compiled::parser[][src]

Parsing and structures of time zone files

This module reads data from a buffer of bytes, and parses it into a TZData structure – doing a minimum of interpretation as to what these values mean! The data read are all kept as primitive numeric types. For the code that turns these numbers into actual timezone data, see the root module.

For more information on what these values mean, see man 5 tzfile.

Structs

Header
LeapSecondData
Limits

Maximum numbers of structures that can be loaded from a time zone data file. If more than these would be loaded, an error will be returned instead.

LocalTimeTypeData
TZData

The internal structure of a zoneinfo file.

TransitionData

Enums

Error
Structures

A description of which value is being read. This gets used solely for error reporting.

Functions

parse

Parse a series of bytes into a TZData structure, returning an error if the buffer fails to be read from, or a limit is reached.

Type Definitions

Result

A std::result::Result with a Box<std::error::Error> as the error type. This is used to return a bunch of errors early, including a limit being reached, the buffer failed to be read from, or a string not being valid UTF-8.