pub trait WidgetTemplate: Sized + Debug + Deref<Target = Self::Root> {
    type Root;

    fn init() -> Self;
}
Expand description

A trait that describes a widget template.

Widget templates can be created manually by implementing this trait or by using the widget_template macro.

Required Associated Types§

The root of the template.

Required Methods§

Initializes the template.

Implementors§