Trait relm4::WidgetTemplate

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

    // Required method
    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§


type Root

The root of the template.

Required Methods§


fn init() -> Self

Initializes the template.