1
3
Fork
You've already forked slotmap-zig
0
Containers with persistent uniqie keys. Port of the original slotmap Rust crate by Orson Peters.
  • Zig 100%
2026年06月18日 14:38:29 +03:00
src sparse_secondary: Fix KeyIterator to return K instead of Entry 2026年06月18日 14:38:29 +03:00
.gitignore feat!: Port the data structures and their main methods 2026年06月07日 16:48:03 +03:00
build.zig Code cleanup and validation ( #3 ) 2026年06月18日 12:56:02 +02:00
build.zig.zon Code cleanup and validation ( #3 ) 2026年06月18日 12:56:02 +02:00
LICENSE feat!: Port the data structures and their main methods 2026年06月07日 16:48:03 +03:00
LICENSE-ORIGINAL feat!: Port the data structures and their main methods 2026年06月07日 16:48:03 +03:00
README.md readme: Fix misdocumentation 2026年06月17日 20:39:48 +03:00

slotmap-zig

A Zig v0.16.0 port of the popular slotmap Rust crate, providing two containers with persistent uniqie keys to access stored values: slotmap.basic and slotmap.dense. Upon insertion a key is returned, which can be used to later access the value. Insertion, deletion, and access all take O(1) time with low overhead. Great for storing collections of objects that need stable, safe references but have no clear ownership otherwise, such as game entities or graph nodes.

Two secondary maps slotmap.secondary and slotmap.sparse_secondary are also provided, which allow you to map associated data to the keys created by one of the slot maps.

License

This project is licensed under the Zlib License - see the LICENSE file for details.

This project is a Zig port of the Rust slotmap crate, originally authored by Orson Peters. The original slotmap source code is also licensed under the Zlib License. A copy of the original license is included in LICENSE-ORIGINAL.