pub trait MakeWidgetWithTag: Sized {
// Required method
fn make_with_tag(self, tag: WidgetTag) -> WidgetInstance;
}
Expand description
A type that can create a WidgetInstance
with a preallocated
WidgetId
.
Required Methods§
Sourcefn make_with_tag(self, tag: WidgetTag) -> WidgetInstance
fn make_with_tag(self, tag: WidgetTag) -> WidgetInstance
Returns a new WidgetInstance
whose WidgetId
comes from tag
.
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.