pub trait RelatedStorage<K>: 'static + Debug + Send + Sync where
    K: Key
{ fn widget(&self) -> WeakWidgetRegistration; fn remove(&self, key: &K) -> Option<WeakWidgetRegistration>; fn register(&self, key: K, widget: &WidgetRegistration); }
Expand description

Related storage enables a widget to communicate in a limited way about widgets being inserted or removed.

Required Methods

Returns the registration of the widget that this is from.

Removes the widget with key from this storage. Returns the removed registration if one was removed.

Registers widget with key.