Struct cfg_lib::config::Parser[][src]

pub struct Parser<'a> { /* fields omitted */ }
Expand description

This implements the low-level parser of CFG source text.

Implementations

Return a new instance of the parser using the provided reader for the source text. The first token is read.

Return true if the parser has reached the end of the source, else false.

Return the current location of the parser in the source.

Parse the contents of a configuration, which should be a mapping or a list, and return the parsed value or a syntax error.

Parse an expression and return an AST node representing it, or a syntax error.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.