apter

Crates.ioapter
lib.rsapter
version0.1.0
sourcesrc
created_at2023-12-26 08:48:54.802449
updated_at2023-12-26 08:48:54.802449
descriptionApter Trees in Rust
homepage
repository
max_upload_size
id1080779
size5,540
(printfn)

documentation

https://docs.rs/apter

README

Apter Trees in Rust

Apter Trees are a simple tree representation using two vectors, node_values and parent_indices.

This library provides a generic ApterTree<T> type and implements a number of useful functions.

use apter::ApterTree;

fn main() {
    let mut tree = ApterTree::new();
    tree.insert("root", usize::MAX);
    tree.insert("a", 0);
    tree.insert("b", 0);
    assert_eq!(tree.len(), 3);
}
Commit count: 0

cargo fmt