pub trait WeakValueExt: 'static {
    fn value(&self) -> Option<Value>;
    fn connect_cleared<F>(&self, f: F) -> SignalHandlerId
    where
        F: 'static + Fn(&Self)
; }
Expand description

Trait containing all WeakValue methods.

Implementors

WeakValue

Required Methods

Get a Value referencing the JavaScript value of self.

Returns

a new Value or None if self was cleared.

This signal is emitted when the JavaScript value is destroyed.

Implementors