[][src]Crate orbtk_tree

This crate provides a index (entity) based tree structure compatible to the DCES Entity Component System. The tree could be used as entity storage.

Example

Basic usage of the tree:


use orbtk_tree::prelude::*;

let mut tree = Tree::new();
tree.register_node(0);
tree.register_node(1);
tree.append_child(0, 1);

Modules

prelude

Structs

Tree

Base data structure to manage the entities of a window in a tree based structure.

TreeIterator

Used to create an iterator for the tree.

Enums

NotFound

Used as return type if a requested entity is not found on the tree.