Trait bin_tree::IteratorEx

source ·
pub trait IteratorEx: Iterator + Sizedwhere
    Self::Item: Node,
{ fn build_tree(self) -> Option<Self::Item> { ... } }
Expand description

The trait extends the functionality of the standard Iterator trait by adding the build_tree method.

Provided Methods§

Builds a binary tree from an iterator of Nodes

Arguments
  • self - the iterator of Nodes to build the tree from
Return

The root node of the built tree, if it was successfully built.

Implementors§