gc::custom_trace! [] [src]

macro_rules! custom_trace {
    ($this:ident, $body:expr) => { ... };
}

This rule implements the trace method. You define a this parameter name, and pass in a body, the body should call mark on every traceable element inside the body, and the mark implementation will automatically delegate to the correct method on the argument.