[src]

Module std::gc

Task-local garbage-collected boxes

The Gc type provides shared ownership of an immutable value. Destruction is not deterministic, and will occur some time between every Gc handle being gone and the end of the task. The garbage collector is task-local so Gc<T> is not sendable.

Gc

Immutable garbage-collected pointer type

pub static GC: () = ()

An value that represents the task-local managed heap.

Use this like let foo = box(GC) Bar::new(...);