Trait gc::trace::Trace [] [src]

pub unsafe trait Trace {
    unsafe fn trace(&self);
    unsafe fn root(&self);
    unsafe fn unroot(&self);
}

The Trace trait, which needs to be implemented on garbage-collected objects.

Required Methods

unsafe fn trace(&self)

Marks all contained Gcs.

unsafe fn root(&self)

Increments the root-count of all contained Gcs.

unsafe fn unroot(&self)

Decrements the root-count of all contained Gcs.

Implementors