Struct comet::gcref::GcRef [−][src]
#[repr(C)]pub struct GcRef<T> { /* fields omitted */ }Expand description
A typed garbage collected pointer to a value.
This is the equivalent of a garbage collected smart-pointer.
The smart pointer is simply a guarantee to the garbage collector that this points to a garbage collected object with the correct header, and not some arbitrary bits that you’ve decided to heap allocate.
Implementations
Trait Implementations
Function invoking the tracing for an object of type T. Read more
trace_ method is used for C FFI safety.
Returns trace descriptor for type that implements this trait. Not recommended to override it.
Auto Trait Implementations
impl<T> RefUnwindSafe for GcRef<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for GcRef<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more