Crate comet_api

Source

Modules§

allocation_config
allocator
block
block_allocator
c_api
cell
gc_info_table
gcref
global_allocator
globals
header
heap
internal
large_space
marking
mmap
task_scheduler
visitor

Macros§

offsetof
Just like C’s offsetof.

Structs§

Config
Configuration for heap constructor.
EncodedHigh
GCInfo
GCInfo contains metadata for objects that implement GCInfoTrait.
GCInfoIndex
GCInfoTable
Efficent storage for GCInfo.
GCPlatform
GcPointer
GC collected smart-pointer. It allows T to be ?Sized for dynamic casts.
GcPointerBase
GC object header.
Heap
Wrapper over Comet heap.
HeapObjectHeader
HeapObjectHeader contains meta data per object and is prepended to each object.
SimpleMarkingConstraint
TraceDescriptor
Describe how to trace an object.
Visitor
WeakRef
Weak reference wrapper.

Enums§

CellState

Constants§

ALLOCATION_GRANULARITY

Traits§

Finalize
The FinalizeTrait specifies how to finalize objects.
FinalizeTrait
The FinalizeTrait specifies how to finalize objects.
GCInfoTrait
Trait determines how the garbage collector treats objects wrt. to traversing, and finalization. It is automatically implemented for all types that implement TraceTrait and FinalizeTrait.
GcCell
GcCell is a type that can be allocated in GC heap.
Trace
Trait specifying how the garbage collector processes an object of type T.
TraceTrait
Trait specifying how the garbage collector processes an object of type T.

Functions§

align
rounds the given value val up to the nearest multiple of align
gc_size
Returns GC allocation size of object.
vtable_of
vtable_of_type

Type Aliases§

FinalizationCallback
TraceCallback