Skip to main content

CustomTrace

Trait CustomTrace 

Source
pub(crate) 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)

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementations on Foreign Types§

Source§

impl CustomTrace for *mut JSObject

Source§

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

Source§

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

Implementors§