Function iced::widget::pick_list

pub fn pick_list<'a, Message, Renderer, T>(
    options: impl Into<Cow<'a, [T]>>,
    selected: Option<T>,
    on_selected: impl Fn(T) -> Message + 'a
) -> PickList<'a, T, Message, Renderer>where
    T: 'static + ToString + Eq,
    [T]: ToOwned<Owned = Vec<T, Global>>,
    Renderer: Renderer,
    <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,
    <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,
Expand description

Creates a new PickList.