Struct toml_edit::Document [] [src]

pub struct Document {
    pub root: Item,
    // some fields omitted
}

Type representing a TOML document

Fields

Root should always be Item::Table.

Methods

impl Document
[src]

[src]

Creates an empty document

[src]

Returns a reference to the root table.

[src]

Returns a mutable reference to the root table.

[src]

Returns an iterator over the root table.

Trait Implementations

impl Display for Document
[src]

[src]

Formats the value using the given formatter. Read more

impl Debug for Document
[src]

[src]

Formats the value using the given formatter.

impl Clone for Document
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Default for Document
[src]

[src]

Returns the "default value" for a type. Read more

impl FromStr for Document
[src]

The associated error which can be returned from parsing.

[src]

Parses a document from a &str

impl<'s> Index<&'s str> for Document
[src]

The returned type after indexing.

[src]

Performs the indexing (container[index]) operation.

impl<'s> IndexMut<&'s str> for Document
[src]

[src]

Performs the mutable indexing (container[index]) operation.