pub type SearchCallback<T> = Rc<dyn Fn(&mut App, &[DropdownMenuEntry<T>], &str) -> Option<usize>>;Expand description
A callback function that returns the index of the item that matches the current contents of a text field.
If a match doesn’t exist then None must be returned.
Used by DropdownMenu::search_callback.
Aliased Type§
pub struct SearchCallback<T> { /* private fields */ }