Crate gc_arena[−][src]
Macros
make_arena | Creates a new “garbage collected arena” type. The macro takes two parameters, the name you
would like to give the arena type, and the type of the arena root. The root type must implement
the |
static_collect | If a type is static, we know that it can never hold |
unsafe_empty_collect | If a type will never hold |
Structs
ArenaParameters | |
CollectionContext | Handle value given by arena callbacks during garbage collection, which must be passed through
|
Gc | A garbage collected pointer to a type T. Implements Copy, and is implemented as a plain machine
pointer. You can only allocate |
GcCell | A garbage collected pointer to a type T that may be safely mutated. When a type that may hold
|
MutationContext | Handle value given by arena callbacks during construction and mutation. Allows allocating new
|
StaticCollect | A wrapper type that implements Collect whenever the contained T is ’static, which is useful in generic contexts |
Traits
Collect | A trait for garbage collected objects that can be placed into |
Functions
rootless_arena | Create a temporary arena without a root object and perform the given operation on it. No garbage collection will be done until the very end of the call, at which point all allocations will be collected. |