Skip to main content

Crate gc_lite

Crate gc_lite 

Source

Re-exports§

pub use gctype::GcTypeInfo;
pub use gctype::GcTypeRegistry;
pub use gctype::gctype_drop;
pub use gctype::gctype_trace;

Modules§

gctype

Macros§

gc_type_register

Structs§

Gc
A safe GC reference with a lifetime guarantee.
GcArena
Bump-pointer arena + free-list hybrid allocator
GcHead
GC node info
GcHeap
GcNodeLink
GcPartition
GcPartitionId
Partition ID, used as index into GcHeap::partitions.
GcRef
Garbage collection reference
GcScope
Handle to a GC scope, used to:
GcScopeStackId
GcScopeState
The GC scope state
GcTraceCtx
GcWeak
Weak reference

Enums§

GcError

Constants§

ARENA_CAPACITY
Arena capacity (64 KB)
MAX_ARENA_ALLOC
Allocations larger than this skip the arena and go directly to system malloc

Traits§

GcNode
GcTrace
GcTraceFn
Gc trace function trait

Type Aliases§

GcResult