Type Alias TreeBuilder

Source
pub type TreeBuilder<N, B> = Tree<Option<N>, B>;
Expand description

A tree with optional data for each node

Aliased Type§

pub struct TreeBuilder<N, B> { /* private fields */ }

Implementations§

Source§

impl<N, B> TreeBuilder<N, B>
where N: Default, B: Default + Eq + Hash + Clone,

Source

pub fn is_buildable(&self) -> bool

Source

pub fn build(self) -> Tree<N, B>