packages

toml::read

TOML 1.1.0 reader: a recursive descent over the bytes of the document that builds the table tree as it goes, with each table's origin kept by path so redefinitions are caught.

Functions

segSource

pub fn seg(k: str) -> str

The display segment of key k: .k, or ."k" unless k is bare.

parseSource

pub fn parse(s: str, version: Version) throws (TomlError) -> Dict<str, Value>

Read one document.

locateSource

pub fn locate(s: str, e: TomlError) -> TomlError

e (from decoding s's value, read as TOML 1.1) with the line:col of e.path.