[−][src]Macro debug_tree::add_leaf_to
Adds a leaf to given tree with the given text and formatting arguments
Arguments
tree
- The tree that the leaf should be added totext...
- Formatted text arguments, as performat!(...)
.
Example
#[macro_use] use debug_tree::{TreeBuilder, add_leaf_to}; fn main() { let tree = TreeBuilder::new(); add_leaf_to!(tree, "A {} leaf", "new"); assert_eq!("A new leaf", &tree.peek_string()); }