Trait id_tree_layout::visualize::Visualize[][src]

pub trait Visualize {
    fn visualize(&self) -> String;

    fn emphasize(&self) -> bool { ... }
}

The Visualize trait abstracts the visual presentation of the node’s data. It should be implemented by the Tree’s node type T. Only mandatory to implement is the visualize method.

Required methods

fn visualize(&self) -> String[src]

Returns the string representation of the nodes data.

Loading content...

Provided methods

fn emphasize(&self) -> bool[src]

When this method returns true the drawer can emphasize the node’s string representation in an implementation dependent way, i.e. it can print it bold.

Loading content...

Implementors

Loading content...