granular-id
This crate provides a data type GranularId<T> that can represent ID numbers with arbitrary precision.
Features
GranularId<T>is a sequence of components of typeTthat can be ordered and compared.- Between any two
GranularId<T>s, there are infinitely many more granular IDs. GranularId<T>is best used with any unsized integer type, such asu8,u16,u32, etc.GranularId<T>can also be used with any type that implements the appropriatenum_traits.GranularId<T>has methods to access its parent, children, siblings, and other relations in a tree-like structure.
Example usage
use GranularId;
Installation
Add this to your Cargo.toml:
[]
= "0.4.1"
License
This project is licensed under the MIT license. See LICENSE for more details.