1 unstable release

0.0.1 Nov 12, 2024

#42 in #capacity

Download history 136/week @ 2024-11-09 48/week @ 2024-11-16

184 downloads per month
Used in 14 crates (via swamp-assets)

MIT license

8KB
149 lines

🎰 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.

No runtime deps