pub trait DumpTree {
// Required method
fn dump(&self, tree: &mut TreeBuilder);
// Provided methods
fn dump_to_string(&self) -> String { ... }
fn dump_to_string_with_options(&self, options: DumpOptions) -> String { ... }
}Expand description
Trait for types that can dump themselves as a tree structure.
Required Methods§
Sourcefn dump(&self, tree: &mut TreeBuilder)
fn dump(&self, tree: &mut TreeBuilder)
Dump this item to the tree builder.
Provided Methods§
Sourcefn dump_to_string(&self) -> String
fn dump_to_string(&self) -> String
Convenience method to dump to a string.
Sourcefn dump_to_string_with_options(&self, options: DumpOptions) -> String
fn dump_to_string_with_options(&self, options: DumpOptions) -> String
Convenience method to dump to a string with options.