Trait zerogc_context::collector::RawSimpleAlloc [−][src]
pub unsafe trait RawSimpleAlloc<'gc, T>: RawCollectorImpl where
T: GcSafe + 'gc, { type Gc: GcRef<'gc, T, Id = CollectorId<Self>>; fn alloc(context: &'gc CollectorContext<Self>, value: T) -> Self::Gc; }
Associated Types
type Gc: GcRef<'gc, T, Id = CollectorId<Self>>
[src]
Expand description
The type of GC references that are returned
Required methods
fn alloc(context: &'gc CollectorContext<Self>, value: T) -> Self::Gc
[src]
Expand description
Allocate a new garbage collected reference