Skip to content

DuckLogic/intid.rs

Repository files navigation

intid.rs Crates.io Documentation

A set of libraries and data structures for operating on integer-like ids. Supports the common rust pattern of wrapping integer ids in newtypes.

The idmap crate provides a strongly typed wrapper around a Vec<Option<V>> lookup table (DirectIdMap) and a similar wrapper around a bitset (DirectIdSet).

The intid-allocator crate provides a way to efficiently track and reuse unused ids, minimizing a memory needed for lookup tables.

The intid crate defines the foundational IntegerId trait. Enabling the derive feature adds a derive macro.

License

Licensed under either the Apache 2.0 License or MIT License at your option.

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in this project by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

Data structures for newtype integer ids

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE.txt
MIT
LICENSE-MIT.txt

Stars

Watchers

Forks

Packages

No packages published