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.

Object Safety§

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§