tree_item_warn

Macro tree_item_warn 

Source
macro_rules! tree_item_warn {
    ($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::warn!.

It don’t do anything extra, just calls tree_item! and gives the returned value to a log::warn!.

Works the same as:

use tree_decorator::tree_item;

log::warn!("{}", tree_item!(dashed, "My tree item"));

But looks more concise and simple:

use tree_decorator::tree_item_warn;

tree_item_warn!(dashed, "My tree item");