Trait webrender::print_tree::PrintTreePrinter

source ·
pub trait PrintTreePrinter {
    // Required methods
    fn new_level(&mut self, title: String);
    fn end_level(&mut self);
    fn add_item(&mut self, text: String);
}
Expand description

A trait that makes it easy to describe a pretty tree of data, regardless of the printing destination, to either print it directly to stdout, or serialize it as in the debugger

Required Methods§

source

fn new_level(&mut self, title: String)

source

fn end_level(&mut self)

source

fn add_item(&mut self, text: String)

Implementors§

source§

impl<W> PrintTreePrinter for PrintTree<W>
where W: Write,