Trait toml_edit::TableLike[][src]

pub trait TableLike {
    fn iter(&self) -> Iter<'_>;
fn get<'s>(&'s self, key: &str) -> Option<&'s Item>;
fn get_mut<'s>(&'s mut self, key: &str) -> Option<&'s mut Item>; fn len(&self) -> usize { ... }
fn is_empty(&self) -> bool { ... } }
Expand description

This trait represents either a Table, or an InlineTable.

Required methods

Returns an iterator over key/value pairs.

Returns an optional reference to an item given the key.

Returns an optional mutable reference to an item given the key.

Provided methods

Returns the number of nonempty items.

Returns true iff the table is empty.

Implementors

Returns an iterator over all subitems, including Item::None.