Trait cushy::value::GetWidget

source ·
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§

source

fn get<'a>(&'a self, key: &Key) -> Option<&'a WidgetInstance>

Returns the widget associated with key, if found.

Implementations on Foreign Types§

source§

impl GetWidget<usize> for Vec<WidgetInstance>

source§

fn get<'a>(&'a self, key: &usize) -> Option<&'a WidgetInstance>

source§

impl<Key> GetWidget<Key> for Map<Key, WidgetInstance>
where Key: Sort,

source§

fn get<'a>(&'a self, key: &Key) -> Option<&'a WidgetInstance>

source§

impl<Key, State> GetWidget<Key> for HashMap<Key, WidgetInstance, State>
where Key: Hash + Eq, State: BuildHasher,

source§

fn get<'a>(&'a self, key: &Key) -> Option<&'a WidgetInstance>

Implementors§