sparse-slot 0.0.1

minimal sparse slot (sparse vector)
Documentation
  • Coverage
  • 7.69%
    2 out of 26 items documented1 out of 20 items with examples
  • Size
  • Source code size: 10.78 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 812.07 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 6s Average build duration of successful builds.
  • all releases: 9s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Repository
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • piot

🎰 sparse-slot

A lightning-fast, memory-efficient sparse slot map implementation in Rust.

✨ Features

  • 🚀 Fixed-size Power: Pre-allocated capacity for predictable performance
  • 🎯 Safe Access: Generation-based handles prevent the "dangling pointer blues"
  • 🔄 Reusable Slots: Removed items' slots can be reused, like a game of musical chairs
  • 🎭 Double Life: Values can be accessed both immutably and mutably

📦 Installation

Add this to your Cargo.toml:

[dependencies]
sparse-slot = "0.0.1"

License

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