Crate debug_tree Copy item path Source pub use default::default_tree ;
pub use crate::tree_config ::*;
default defer scoped_branch tree_config add_branch Adds a scoped branch to the default tree with the given text and formatting arguments
The branch will be exited at the end of the current block. add_branch_to Adds a scoped branch to given tree with the given text and formatting arguments
The branch will be exited at the end of the current block. add_leaf Adds a leaf to the default tree with the given text and formatting arguments add_leaf_to Adds a leaf to given tree with the given text and formatting arguments add_leaf_value Adds the value as a leaf to the default tree. add_leaf_value_to Adds a leaf to given tree with the given value
argument defer Calls function
with argument, tree
, at the end of the current scope
The function will only be executed if the tree is enabled when this macro is called defer_peek_print Calls peek_print on tree
at the end of the current scope.
The function will only be executed if the tree is enabled when this macro is called defer_peek_write Calls peek_write on tree
at the end of the current scope.
The function will only be executed if the tree is enabled when this macro is called defer_print Calls print on tree
at the end of the current scope.
The function will only be executed if the tree is enabled when this macro is called defer_write Calls write on tree
at the end of the current scope.
The function will only be executed if the tree is enabled when this macro is called TreeBuilder Reference wrapper for TreeBuilderBase
AsTree clear Calls clear for the tree named name
If there is no tree named name
then one is created is_tree_enabled Returns the tree named name
If there is no tree named name
then one is created and then returned. peek_print Calls peek_print for the tree named name
If there is no tree named name
then one is created peek_string Returns peek_string for the tree named name
If there is no tree named name
then one is created peek_write Calls peek_print for the tree named name
If there is no tree named name
then one is created print Calls print for the tree named name
If there is no tree named name
then one is created set_enabled Sets the enabled state of the tree. string Returns string for the tree named name
If there is no tree named name
then one is created tree Returns the tree
If there is no tree then one is created and then returned. write Calls write for the tree named name
If there is no tree named name
then one is created