pub struct ConfigText { /* private fields */ }
Expand description

Implements the text configuration parser.

Implementations

Parses a text representation into configuration information.

Any instance of a struct implementing Read can be passed to the configuration parser. As the second parameter a string identifying the configuration source must be passed. This string is used to construct the error location when displaying error messages.

The method returns a new ConfigText instance or an error if the file could not be parsed.

Parse a text representation of configuration information and fill a ConfPath with the contained keys.

To be able to enumerate the keys of a configuration the children method of a ConfPath instance must be used. This variant of the new method allows a ConfPath instance to be passed. This instance is used to construct all configuration paths while parsing the text representation. After this method returns the ConfPath instance can be used to explore the contents of the parsed text configuration.

Trait Implementations

Get a configuration option. Read more

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.