DeTable

Type Alias DeTable 

Source
pub type DeTable<'i> = Map<Spanned<DeString<'i>>, Spanned<DeValue<'i>>>;
Available on crate feature parse only.
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§

pub 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

Layout§

Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...) attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.

Size: 32 bytes