Registry / utility / generational-arena

generational-arena

JSON →
library0.2.9rscratesunverified

A safe arena allocator that supports deletion without suffering from the ABA problem by using generational indices.

# Cargo.toml [dependencies] generational-arena = "0.2.9"
INSTALL
IMPORT
SIG · GENERATIONAL-ARENA
G
generational-arena
utilityrustv0.2.9
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Arena
✓ use generational_arena::Arena;

Insert and retrieve a value from a generational arena

use generational_arena::Arena; fn main() { let mut arena = Arena::new(); let idx = arena.insert(42); if let Some(val) = arena.get(idx) { println!("Value: {}", val); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.2.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

Agent activity
2 hits · last 30 days
node
2
Resources
generational-arena — cargo add generational-arena · libregistry