[][src]Module gluon_vm::gc

Modules

mutex

Structs

Borrow
Gc

A mark and sweep garbage collector.

GcPtr

A pointer to a garbage collected value.

Generation
Move

DataDef that moves its value directly into the pointer useful for sized types

OwnedPtr
WriteOnly

Pointer type which can only be written to.

Traits

CloneUnrooted
CollectScope
CopyUnrooted

SAFETY The only unsafety from copying the type is the creation of an unrooted value

DataDef

A definition of some data which may be allocated by the garbage collector.

FromPtr

Trait which creates a typed pointer from a *mut () pointer. For Sized types this is just a cast but for unsized types some more metadata must be taken from the provided D value to make it initialize correctly.

Trace

Trait which must be implemented on all root types which contain GcPtr A type unsafe implementing Trace must call trace on each of its fields which in turn contains GcPtr

Type Definitions

GcRef
OwnedGcRef