Skip to main content

Module format

Module format 

Source
Expand description

Format detection, parsing and emission.

Values remain native throughout parsing, merging and emission.

Enums§

Format
The two supported native formats. A pipeline selects one for every stage.
SourceName
Which input a parse error came from. Names an input being read, so there is no variant for --set: a bad --set expression is rejected by PathLeaf during argument parsing, long before anything reaches here.

Traits§

ConfigFormat
Parsing and emission for the two supported native formats.

Functions§

emit
Emit a native value in its own format, with a trailing newline.
parse
Parse a native document, requiring an object/table root.