docs.rs failed to build pi_append_vec-0.3.10
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
pi_append_vec-0.3.2
Thread-safe slotmap
slotmap
A Rust library providing three containers with persistent unique keys to access
stored values. Upon insertion a key
is returned that can be used to later access or remove the values. 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. Key maps,
KeyMap
are also provided that allow you to map
further objects to the keys created by one of the slot maps. Please refer to the
the documentation for more information.
[]
= "0.1"
Example
A short example:
use ;
let sm = new;
let foo = sm.insert; // Key generated on insert.
let bar = sm.insert;
assert_eq!;
assert_eq!;
sm.remove;
let reuse = sm.insert; // Space from bar reused.
assert_eq!; // After deletion a key stays invalid.
let sec = new;
sec.insert; // We provide the key for secondary maps.
sec.insert;
for in sm
License
slotmap
is released under the Zlib license, a permissive license. It is
OSI and FSF approved and GPL compatible.