cushy::context

Trait ManageWidget

Source
pub trait ManageWidget {
    type Managed: MapManagedWidget<MountedWidget>;

    // Required method
    fn manage(&self, context: &WidgetContext<'_>) -> Self::Managed;
}
Expand description

A type chat can convert to a MountedWidget through a WidgetContext.

Required Associated Types§

Source

type Managed: MapManagedWidget<MountedWidget>

The managed type, which can be Option<MountedWidget> or MountedWidget.

Required Methods§

Source

fn manage(&self, context: &WidgetContext<'_>) -> Self::Managed

Resolve self into a MountedWidget.

Implementors§