TreeVizNode

Trait TreeVizNode 

Source
pub trait TreeVizNode
where Self: ToString,
{ // Required method fn children(&self) -> Vec<Self> where Self: Sized; }
Expand description

A trait that represents a node in an arbitrary tree structure. To use this with draw_nodes, you also need to implement std::hash::Hash.

Required Methods§

Source

fn children(&self) -> Vec<Self>
where Self: Sized,

Returns a vector containing the sub-nodes that are children of this node.

Implementors§