Trait zerogc_context::collector::RawSimpleAlloc[][src]

pub unsafe trait RawSimpleAlloc: RawCollectorImpl {
    unsafe fn alloc_uninit<'gc, T: GcSafe + 'gc>(
        context: &'gc CollectorContext<Self>
    ) -> (CollectorId<Self>, *mut T);
unsafe fn alloc_uninit_slice<'gc, T>(
        context: &'gc CollectorContext<Self>,
        len: usize
    ) -> (CollectorId<Self>, *mut T)
    where
        T: GcSafe + 'gc
;
fn alloc_vec<'gc, T>(
        context: &'gc CollectorContext<Self>
    ) -> GcVec<'gc, T, CollectorContext<Self>>
    where
        T: GcSafe + 'gc
;
fn alloc_vec_with_capacity<'gc, T>(
        context: &'gc CollectorContext<Self>,
        capacity: usize
    ) -> GcVec<'gc, T, CollectorContext<Self>>
    where
        T: GcSafe + 'gc
; }

Required methods

Implementors