Struct zerogc_context::collector::CollectorRef[][src]

#[repr(C)]
pub struct CollectorRef<C: RawCollectorImpl> { /* fields omitted */ }
Expand description

A reference to the collector.

TODO: Devise better name

Implementations

The id of this collector

Convert this collector into a unique context

The single-threaded implementation only allows a single context, so this method is nessicary to support it.

Create a new context bound to this collector

Warning: Only one collector should be created per thread. Doing otherwise can cause deadlocks/panics.

Trait Implementations

Executes the destructor for this type. Read more

We support handles

The type of handles to this object.

The type of collector IDs given by this system

The type of contexts used in this sytem

We actually are thread safe ;)

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.