pub trait MakeWidgetList: Sized {
// Required method
fn make_widget_list(self) -> WidgetList;
// Provided method
fn and<W>(self, widget: W) -> WidgetList
where W: MakeWidget { ... }
}
Required Methods§
Sourcefn make_widget_list(self) -> WidgetList
fn make_widget_list(self) -> WidgetList
Returns self as a WidgetList
.
Provided Methods§
Sourcefn and<W>(self, widget: W) -> WidgetListwhere
W: MakeWidget,
fn and<W>(self, widget: W) -> WidgetListwhere
W: MakeWidget,
Adds widget
to self and returns the updated list.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.