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ยง
- Config
Error - An error deserializing a
ConfigValue. - List
Access ๐ - Located
- A configuration value together with its
Location. It can only be deserialized from aConfigValue. - Location
- Where a configuration value was written.
- Table
Access ๐
Enumsยง
- Config
Value - An untyped configuration value. Every node remembers its
Location.
Constantsยง
- LOCATED ๐
- Name and fields of the struct through which a
ConfigValuehands a value and its location toLocated. 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
offsetincontents.