(function() {var type_impls = { "toml_edit":[["
source§

impl DocumentMut

source

pub fn new() -> Self

Creates an empty document

\n
source

pub fn as_item(&self) -> &Item

Returns a reference to the root item.

\n
source

pub fn as_item_mut(&mut self) -> &mut Item

Returns a mutable reference to the root item.

\n
source

pub fn as_table(&self) -> &Table

Returns a reference to the root table.

\n
source

pub fn as_table_mut(&mut self) -> &mut Table

Returns a mutable reference to the root table.

\n
source

pub fn iter(&self) -> Iter<'_>

Returns an iterator over the root table.

\n
source

pub fn set_trailing(&mut self, trailing: impl Into<RawString>)

Set whitespace after last element

\n
source

pub fn trailing(&self) -> &RawString

Whitespace after last element

\n
",0,"toml_edit::Document"],["
source§

impl Default for DocumentMut

source§

fn default() -> Self

Returns the “default value” for a type. Read more
","Default","toml_edit::Document"],["
source§

impl<'s> Index<&'s str> for DocumentMut

§

type Output = Item

The returned type after indexing.
source§

fn index(&self, key: &'s str) -> &Item

Performs the indexing (container[index]) operation. Read more
","Index<&'s str>","toml_edit::Document"],["
source§

impl From<Table> for DocumentMut

source§

fn from(root: Table) -> Self

Converts to this type from the input type.
","From","toml_edit::Document"],["
source§

impl Display for DocumentMut

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Display","toml_edit::Document"],["
source§

impl<'s> IndexMut<&'s str> for DocumentMut

source§

fn index_mut(&mut self, key: &'s str) -> &mut Item

Performs the mutable indexing (container[index]) operation. Read more
","IndexMut<&'s str>","toml_edit::Document"],["
source§

impl Debug for DocumentMut

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
","Debug","toml_edit::Document"],["
source§

impl Clone for DocumentMut

source§

fn clone(&self) -> DocumentMut

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
","Clone","toml_edit::Document"],["
source§

impl DerefMut for DocumentMut

source§

fn deref_mut(&mut self) -> &mut Self::Target

Mutably dereferences the value.
","DerefMut","toml_edit::Document"],["
source§

impl Deref for DocumentMut

§

type Target = Table

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
","Deref","toml_edit::Document"],["
source§

impl FromStr for DocumentMut

source§

fn from_str(s: &str) -> Result<Self, Self::Err>

Parses a document from a &str

\n
§

type Err = TomlError

The associated error which can be returned from parsing.
","FromStr","toml_edit::Document"],["
source§

impl<'de> IntoDeserializer<'de, Error> for DocumentMut

§

type Deserializer = Deserializer

The type of the deserializer being converted into.
source§

fn into_deserializer(self) -> Self::Deserializer

Convert this value into a deserializer.
","IntoDeserializer<'de, Error>","toml_edit::Document"]] };if (window.register_type_impls) {window.register_type_impls(type_impls);} else {window.pending_type_impls = type_impls;}})()