Trait script::dom::bindings::weakref::WeakReferenceable

source ·
pub trait WeakReferenceable: DomObject + Sized {
    // Provided method
    fn downgrade(&self) -> WeakRef<Self> { ... }
}
Expand description

Trait implemented by weak-referenceable interfaces.

Provided Methods§

source

fn downgrade(&self) -> WeakRef<Self>

Downgrade a DOM object reference to a weak one.

Object Safety§

This trait is not object safe.

Implementors§