Macro tree_decorator::tree_item_error[][src]

macro_rules! tree_item_error {
    ($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::error!.

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

Works the same as:

use tree_decorator::tree_item;

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

But looks more concise and simple:

use tree_decorator::tree_item_error;

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