Trait zerogc::GcRebrand[][src]

pub unsafe trait GcRebrand<'new_gc, Id: CollectorId>: Trace {
    type Branded: ?Sized + 'new_gc;
}
Expand description

Changes all references to garbage collected objects to match a specific lifetime.

This indicates that its safe to transmute to the new Branded type and all that will change is the lifetimes.

Associated Types

This type with all garbage collected lifetimes changed to 'new_gc

This must have the same in-memory repr as Self, so that it’s safe to transmute.

Implementations on Foreign Types

Implementors