Struct parse_zoneinfo::table::TableBuilder [] [src]

pub struct TableBuilder { /* fields omitted */ }

A builder for Table values based on various line definitions.

Methods

impl TableBuilder
[src]

Creates a new builder with an empty table.

Adds a new line describing a zone definition.

Returns an error if there’s already a zone with the same name, or the zone refers to a ruleset that hasn’t been defined yet.

Adds a new line describing the continuation of a zone definition.

Returns an error if the builder wasn’t expecting a continuation line (meaning, the previous line wasn’t a zone line)

Adds a new line describing one entry in a ruleset, creating that set if it didn’t exist already.

Adds a new line linking one zone to another.

Returns an error if there was already a link with that name.

Returns the table after it’s finished being built.

Trait Implementations

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

Formats the value using the given formatter.