Type Alias DeTable

Source
pub type DeTable<'i> = Map<Spanned<DeString<'i>>, Spanned<DeValue<'i>>>;
Expand description

Type representing a TOML table, payload of the Value::Table variant.

By default it entries are stored in lexicographic order of the keys. Enable the preserve_order feature to store entries in the order they appear in the source file.

Aliased Type§

struct DeTable<'i> { /* private fields */ }

Implementations§

Source§

impl<'i> DeTable<'i>

Source

pub fn parse(input: &'i str) -> Result<Spanned<Self>, Error>

Parse a TOML document

Source

pub fn parse_recoverable(input: &'i str) -> (Spanned<Self>, Vec<Error>)

Parse a TOML document, with best effort recovery on error

Source

pub fn make_owned(&mut self)

Ensure no data is borrowed