Registry / utility / generational-box

generational-box

JSON →
library0.7.9rscratesunverified

A box backed by a generational runtime for safe memory management.

# Cargo.toml [dependencies] generational-box = "0.7.9"
INSTALL
IMPORT
SIG · GENERATIONAL-BOX
G
generational-box
utilityrustv0.7.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.

GenerationalBox
use generational_box::GenerationalBox;

Creates a generational box and retrieves its value.

use generational_box::GenerationalBox; fn main() { let mut gbox = GenerationalBox::new(42); if let Some(val) = gbox.get() { println!("Value: {}", val); } }
Debug
Known issues
gotchaGenerational indices may become stale if not updated.
fix
Always check the generation when accessing the box to avoid use-after-free.
affects: >=0.7.0
Upgrade
Version history
0.7.9latest on crates.io
Audit
Dependencies

No dependency data recorded yet.

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