toml_edit::visit

Trait Visit

Source
pub trait Visit<'doc> {
Show 14 methods // Provided methods fn visit_document(&mut self, node: &'doc DocumentMut) { ... } fn visit_item(&mut self, node: &'doc Item) { ... } fn visit_table(&mut self, node: &'doc Table) { ... } fn visit_inline_table(&mut self, node: &'doc InlineTable) { ... } fn visit_table_like(&mut self, node: &'doc dyn TableLike) { ... } fn visit_table_like_kv(&mut self, key: &'doc str, node: &'doc Item) { ... } fn visit_array(&mut self, node: &'doc Array) { ... } fn visit_array_of_tables(&mut self, node: &'doc ArrayOfTables) { ... } fn visit_value(&mut self, node: &'doc Value) { ... } fn visit_boolean(&mut self, node: &'doc Formatted<bool>) { ... } fn visit_datetime(&mut self, node: &'doc Formatted<Datetime>) { ... } fn visit_float(&mut self, node: &'doc Formatted<f64>) { ... } fn visit_integer(&mut self, node: &'doc Formatted<i64>) { ... } fn visit_string(&mut self, node: &'doc Formatted<String>) { ... }
}
Expand description

Document tree traversal to mutate an exclusive borrow of a document tree in-place.

See the module documentation for details.

Provided Methods§

Source

fn visit_document(&mut self, node: &'doc DocumentMut)

Source

fn visit_item(&mut self, node: &'doc Item)

Source

fn visit_table(&mut self, node: &'doc Table)

Source

fn visit_inline_table(&mut self, node: &'doc InlineTable)

Source

fn visit_table_like(&mut self, node: &'doc dyn TableLike)

Source

fn visit_table_like_kv(&mut self, key: &'doc str, node: &'doc Item)

Source

fn visit_array(&mut self, node: &'doc Array)

Source

fn visit_array_of_tables(&mut self, node: &'doc ArrayOfTables)

Source

fn visit_value(&mut self, node: &'doc Value)

Source

fn visit_boolean(&mut self, node: &'doc Formatted<bool>)

Source

fn visit_datetime(&mut self, node: &'doc Formatted<Datetime>)

Source

fn visit_float(&mut self, node: &'doc Formatted<f64>)

Source

fn visit_integer(&mut self, node: &'doc Formatted<i64>)

Source

fn visit_string(&mut self, node: &'doc Formatted<String>)

Implementors§