Trait mozjs::gc::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§