Macro tree_decorator::tree_item_info [−][src]
macro_rules! tree_item_info { ($first_style_name:ident $( : $first_style_value:expr )? $( ; $other_style_name:ident $( : $other_style_value:expr )? )* , $str:literal $($arg:tt)*) => { ... }; ($first_style_name:ident $( : $first_style_value:expr )? $( ; $other_style_name:ident $( : $other_style_value:expr )? )*) => { ... }; ($str:literal $($arg:tt)*) => { ... }; () => { ... }; }
Expand description
Tree item call with a log::info!
.
It don’t do anything extra, just calls tree_item!
and
gives the returned value to a log::info!
.
Works the same as:
use tree_decorator::tree_item; log::info!("{}", tree_item!(dashed, "My tree item"));
But looks more concise and simple:
use tree_decorator::tree_item_info; tree_item_info!(dashed, "My tree item");