pub trait WidgetTemplate:
Sized
+ Debug
+ AsRef<Self::Root>
+ Deref<Target = Self::Root> {
type Root;
type Init;
// Required method
fn init(init: Self::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§
Required Methods§
Object Safety§
This trait is not object safe.