Crate gc [−] [src]
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.
Reexports
pub use trace::Trace; |
Modules
trace |
Macros
custom_trace! |
This rule implements the trace method. |
unsafe_empty_trace! |
This rule implements the trace methods with empty implementations. |
Structs
Gc |
A garbage-collected pointer type over an immutable value. |
GcCell |
A mutable memory location with dynamically checked borrow rules that can be used inside of a garbage-collected pointer. |
GcCellRefMut |
A wrapper type for a mutably borrowed value from a |
Functions
force_collect |
Immediately triggers a garbage collection on the current thread. |
Type Definitions
GcCellRef |
A wrapper type for an immutably borrowed value from a |