[][src]Trait cgc::Trace

pub trait Trace {
    fn trace(&self) { ... }
}

Trait that you must need to implement for objects that you want GC.

Provided methods

fn trace(&self)

Trace all GC references in current object.

impl Trace for MyObject {
    fn trace(&self) {
        let item1: &GC<dyn Trace> = &self.field;
        item1.mark();
    }
}
Loading content...

Implementations on Foreign Types

impl Trace for u8[src]

impl Trace for u16[src]

impl Trace for u32[src]

impl Trace for u64[src]

impl Trace for u128[src]

impl Trace for i8[src]

impl Trace for i16[src]

impl Trace for i32[src]

impl Trace for i128[src]

impl Trace for i64[src]

impl Trace for bool[src]

impl Trace for String[src]

impl<T: Trace> Trace for Vec<T>[src]

Loading content...

Implementors

impl<T: Trace> Trace for GC<T>[src]

Loading content...