Trait script::CustomTraceable

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

A trait to allow tracing only DOM sub-objects.

§Safety

This trait is unsafe; if it is implemented incorrectly, the GC may end up collecting objects that are still reachable.

Required Methods§

source

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

Trace self.

§Safety

The JSTracer argument must point to a valid JSTracer in memory. In addition, implementors of this method must ensure that all active objects are properly traced or else the garbage collector may end up collecting objects that are still reachable.

Implementations on Foreign Types§

source§

impl CustomTraceable for Tokenizer<TreeBuilder<Dom<Node>, Sink>>

source§

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

source§

impl CustomTraceable for Tokenizer<PrefetchSink>

source§

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

source§

impl CustomTraceable for XmlTokenizer<XmlTreeBuilder<Dom<Node>, Sink>>

source§

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

source§

impl<J> CustomTraceable for Finger<J>
where J: JSTraceable,

source§

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

source§

impl<J> CustomTraceable for Hand<J>
where J: JSTraceable,

source§

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

source§

impl<K, V, S> CustomTraceable for IndexMap<K, V, S>
where K: Hash + Eq + JSTraceable, V: JSTraceable, S: BuildHasher,

source§

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

source§

impl<S> CustomTraceable for AuthorStyles<S>

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

source§

impl<S> CustomTraceable for AuthorStylesheetSet<S>

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

source§

impl<S> CustomTraceable for DocumentStylesheetSet<S>

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

source§

impl<Sink> CustomTraceable for LossyDecoder<Sink>
where Sink: JSTraceable + TendrilSink<UTF8>,

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

source§

impl<T: CustomTraceable> CustomTraceable for Box<T>

source§

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

source§

impl<T: JSTraceable + 'static> CustomTraceable for SmallVec<[T; 1]>

source§

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

source§

impl<T: JSTraceable + Eq + Hash> CustomTraceable for IndexSet<T>

source§

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

source§

impl<T: JSTraceable> CustomTraceable for Arc<T>

source§

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

source§

impl<T: JSTraceable> CustomTraceable for OnceCell<T>

source§

unsafe fn trace(&self, tracer: *mut JSTracer)

source§

impl<T: JSTraceable> CustomTraceable for RwLock<T>

source§

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

Implementors§