cushy::widget

Trait MakeWidgetWithTag

Source
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§

Source

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.

Implementations on Foreign Types§

Source§

impl MakeWidgetWithTag for &str

Source§

impl MakeWidgetWithTag for &String

Source§

impl MakeWidgetWithTag for Cow<'_, str>

Source§

impl MakeWidgetWithTag for String

Implementors§