pub trait KeyedStorage<K>: 'static + Debug + Send + Sync where
    K: Key
{ fn register<W>(
        &mut self,
        key: impl Into<Option<K>>,
        styled_widget: StyledWidget<W>
    ) -> WidgetRegistration
    where
        W: Widget + AnyWidget
; fn storage(&self) -> &WidgetStorage; fn related_storage(
        &self
    ) -> Option<Box<dyn RelatedStorage<K> + 'static, Global>>; }
Expand description

A type that registers widgets with an associated key.

Required Methods

Register styled_widget with key.

Returns the underlying widget storage.

If this storage is representing a component, this returns a weak registration that can be used to communicate with it.

Implementors