Trait bin_tree::IteratorEx

source ·
pub trait IteratorEx {
    type Item: Node;

    fn build_tree(self) -> Option<Self::Item>;
}

Required Associated Types§

Required 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§

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