ghost-gc

Crates.ioghost-gc
lib.rsghost-gc
version0.2.1
created_at2024-11-28 12:20:40.65835+00
updated_at2025-01-13 02:01:33.149987+00
descriptionA safe garbage collected arena.
homepage
repositoryhttps://github.com/cbrownsey/ghost-gc
max_upload_size
id1464292
size54,712
C. Brownsey (cbrownsey)

documentation

https://docs.rs/ghost-gc/latest/ghost_gc/

README

A garbage collected arena in which garbage collected boxes can be allocated, and which can't escape from the arena, using invariant lifetimes.

The main type of this crate is the garbage collected pointer Gc. It is a thin smart pointer branded with an invariant lifetime, to ensure that it is unable to escape from the arena in which it was allocated.

The Gc is capable of holding any type which implements the Collect trait, which includes most types which do not contain interior mutability.

This library is more or less a rewrite of gc-arena, with additional nightly features, such as the allocator api, and pointer metadata, to make the garbage collected pointers store the metadata on the heap.

Commit count: 12

cargo fmt