flange-flat-tree 0.2.2

A tree that can be expanded by attaching new values to the node without mutability of the old ones
Documentation
1
2
3
4
5
6
7
8
use crate::navigator::Navigator;

pub trait TreeData: Copy {
    type Node;
    fn count(self) -> usize;
    fn get(self, index: usize) -> Self::Node;
    fn get_nav(&self) -> &Navigator;
}