flat-tree 2.1.0

Rust module for encoding/decoding varints that doesn't do any IO. Inspired by the Node.js varint module
Documentation

flat-tree

crates.io version build status downloads docs.rs docs

Rust version of mafintosh/flat-tree. Map a binary tree to a list.

Usage

extern crate flat_tree;

let parent = flat_tree::parent(0);
println!("parent of 0 is {}", parent);

License

MIT OR Apache-2.0