mozjs::gc

Trait CustomTrace

Source
pub unsafe trait CustomTrace {
    // Required method
    fn trace(&self, trc: *mut JSTracer);
}
Expand description

Similarly to Traceable trait, it’s used to specify tracing of various types that are used in conjunction with CustomAutoRooter.

Required Methods§

Source

fn trace(&self, trc: *mut JSTracer)

Implementations on Foreign Types§

Source§

impl CustomTrace for *mut JSObject

Source§

impl<T: CustomTrace> CustomTrace for Option<T>

Source§

impl<T: CustomTrace> CustomTrace for Vec<T>

Implementors§