Skip to main content

Module value

Module value 

Source
Expand description

Untyped configuration values that remember where they were written.

Configuration files are parsed into ConfigValue trees in which every node carries its Location. Trees from different files are merged and then deserialized into typed settings. Deserialization errors point to the location of the offending value, and fields of type Located<T> keep the location of their value, e.g., to resolve a relative path against the file that defines it.

Structsยง

ConfigError
An error deserializing a ConfigValue.
ListAccess ๐Ÿ”’
Located
A configuration value together with its Location. It can only be deserialized from a ConfigValue.
Location
Where a configuration value was written.
TableAccess ๐Ÿ”’

Enumsยง

ConfigValue
An untyped configuration value. Every node remembers its Location.

Constantsยง

LOCATED ๐Ÿ”’
Name and fields of the struct through which a ConfigValue hands a value and its location to Located. They cannot clash with the name of any other struct.
LOCATION_FIELD ๐Ÿ”’
VALUE_FIELD ๐Ÿ”’

Functionsยง

line_column ๐Ÿ”’
One-based line and column of the byte offset in contents.