Struct cell_gc::Heap [] [src]

pub struct Heap<'h> { /* fields omitted */ }

Methods

impl<'h> Heap<'h>
[src]

Add the object *p to the root set, protecting it from GC.

An object that has been pinned n times stays in the root set until it has been unpinned n times.

(Unsafe because if the argument is garbage, a later GC will crash. Called only from impl GCRef.)

Unpin an object (see pin).

(Unsafe because unpinning an object that other code is still using causes dangling pointers. Called only from impl GCRef.)

Trait Implementations

impl<'h> Drop for Heap<'h>
[src]

A method called when the value goes out of scope. Read more