Struct zerogc::vec::GcArray [−][src]
#[repr(transparent)]pub struct GcArray<'gc, T: GcSafe + 'gc, Id: CollectorId> { /* fields omitted */ }
Expand description
A garbage collected array.
This is a thin pointer, with length stored indirectly in the object’s header.
Implementations
Create an array from the specified raw pointer and length
Safety
Pointer and length must be valid, and point to a garbage collected value allocated from the corresponding CollectorId
Load a raw pointer to the array’s value
Resolve the CollectorId
Trait Implementations
Whether this type needs to be traced by the garbage collector. Read more
If this type needs a destructor run. Read more
Visit each field in this type Read more
unsafe fn visit_inside_gc<'actual_gc, Visitor, ActualId>(
gc: &mut Gc<'actual_gc, Self, ActualId>,
visitor: &mut Visitor
) -> Result<(), Visitor::Err> where
Visitor: GcVisitor,
ActualId: CollectorId,
Self: GcSafe + 'actual_gc,
unsafe fn visit_inside_gc<'actual_gc, Visitor, ActualId>(
gc: &mut Gc<'actual_gc, Self, ActualId>,
visitor: &mut Visitor
) -> Result<(), Visitor::Err> where
Visitor: GcVisitor,
ActualId: CollectorId,
Self: GcSafe + 'actual_gc,
Visit this object, assuming its already inside a GC pointer. Read more
Auto Trait Implementations
impl<'gc, T, Id> RefUnwindSafe for GcArray<'gc, T, Id> where
Id: RefUnwindSafe,
T: RefUnwindSafe,
impl<'gc, T, Id> UnwindSafe for GcArray<'gc, T, Id> where
Id: UnwindSafe,
T: RefUnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more