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

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

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

Returns the string representation of the nodes data.

Provided Methods

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.

Implementors