Skip to content

DuckLogic/idmap.rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

idmap.rs Crates.io Documentation

Efficient maps of integer id keys to values.

A DirectIdMap is a strongly typed wrapper around a Vec<Option<V>> lookup table, and the DirectIdSet is a similar wrapper around a bitset.

The intid-allocator crate provides a way to efficiently allocate and free integer ids, which reduces the memory needed to use these lookup tables.

This is based on an IntegerId trait defined in the intid crate. The trait can be derived for newtype structs and C-like enums using the intid-derive procedural 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

Efficient maps of integer id keys to values, backed by an underlying `Vec`

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