Crate gc

source ·
Expand description

Thread-local garbage-collected boxes (The Gc<T> type).

The Gc<T> type provides shared ownership of an immutable value. It is marked as non-sendable because the garbage collection only occurs thread-locally.

Macros

Structs

Traits

  • The Finalize trait, which needs to be implemented on garbage-collected objects to define finalization logic.
  • The Trace trait, which needs to be implemented on garbage-collected objects.

Functions