Crates.io | synctree |
lib.rs | synctree |
version | 0.1.3 |
source | src |
created_at | 2018-08-08 19:20:32.210308 |
updated_at | 2018-08-09 14:31:52.20823 |
description | Thread-safe tree data structure |
homepage | |
repository | https://gitlab.com/LeshaInc/synctree |
max_upload_size | |
id | 78407 |
size | 60,439 |
A crate providing tree implementation with multithreading support.
use synctree::NodeArena;
let ref arena = NodeArena::with_capacity(12);
let root = tree!(
arena,
1 => [
2,
3 => [4, 5],
6 => [
7 => [8 => []],
9 => [10 => [11]]],
12
]
);
This code creates a following tree: