We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e0fc25b commit a7f2a45Copy full SHA for a7f2a45
1 file changed
src/ds/slot_arena.rs
@@ -142,7 +142,9 @@
142
//!
143
//! ## Implementation Notes
144
145
-//! - `SlotId` carries a generation counter; stale handles return `None`
+//! - `SlotId` stores the generation value assigned by the arena; the arena
146
+//! maintains the authoritative generation counter and validates `SlotId`s
147
+//! against it so that stale handles return `None`
148
//! - Physical slot indices may be reused after removal, but the
149
//! generation counter prevents ABA hazards
150
//! - `len()` tracks live entries, not `slots.len()`
0 commit comments