Trait toml_edit::visit::Visit

source ·
pub trait Visit<'doc> {
Show 14 methods // Provided methods fn visit_document(&mut self, node: &'doc Document) { ... } 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 Document)

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§