pub fn read_toml(text: &str) -> Result<Doc, OmnistError>Expand description
Parse TOML text into a Doc.
TOML documents are always tables at the top level (there is no bare-
scalar-document form in the grammar), so unlike read_json/read_yaml
this never needs to special-case a non-object root on the way in.
Nesting past crate::document::MAX_DEPTH surfaces as
crate::error::DocumentError via Doc::of, matching the other
format readers.