[][src]Struct ezgui::Autocomplete

pub struct Autocomplete<T: Clone> {
    choices: Vec<(String, Vec<T>)>,
    tb: TextBox,
    menu: Menu<()>,
    current_line: String,
    chosen_values: Option<Vec<T>>,
}

Fields

choices: Vec<(String, Vec<T>)>tb: TextBoxmenu: Menu<()>current_line: Stringchosen_values: Option<Vec<T>>

Implementations

impl<T: 'static + Clone + Ord> Autocomplete<T>[src]

pub fn new(ctx: &mut EventCtx, raw_choices: Vec<(String, T)>) -> Widget[src]

impl<T: 'static + Clone> Autocomplete<T>[src]

pub fn final_value(&self) -> Option<Vec<T>>[src]

fn recalc_menu(&mut self, ctx: &mut EventCtx)[src]

Trait Implementations

impl<T: 'static + Clone> WidgetImpl for Autocomplete<T>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Autocomplete<T> where
    T: RefUnwindSafe

impl<T> Send for Autocomplete<T> where
    T: Send

impl<T> Sync for Autocomplete<T> where
    T: Sync

impl<T> Unpin for Autocomplete<T> where
    T: Unpin

impl<T> UnwindSafe for Autocomplete<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any

impl<T> DowncastSync for T where
    T: Send + Sync + Any

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,