dreck 0.1.1

A safe tracing garbage collection library with minimal safety bookkeeping
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use dreck::*;

fn use_root<'own>(owner: &Owner<'own>, root: &mut Root<'own>, _: Gc<'_, 'own, i32>) {
    root.collect_full(owner);
}

fn main() {
    new_root!(owner, root);

    let v = root.add(0);
    use_root(&owner, root, v);
}