pub trait GetWidget<Key> {
// Required method
fn get<'a>(&'a self, key: &Key) -> Option<&'a WidgetInstance>;
}
Expand description
A collection of widgets that can be queried by Key
.
Required Methods§
sourcefn get<'a>(&'a self, key: &Key) -> Option<&'a WidgetInstance>
fn get<'a>(&'a self, key: &Key) -> Option<&'a WidgetInstance>
Returns the widget associated with key
, if found.