pub struct Picker<D: PickerDelegate> {
pub delegate: D,
/* private fields */
}
Fields§
§delegate: D
Implementations§
source§impl<D: PickerDelegate> Picker<D>
impl<D: PickerDelegate> Picker<D>
pub fn new(delegate: D, cx: &mut ViewContext<'_, Self>) -> Self
pub fn focus(&self, cx: &mut WindowContext<'_>)
pub fn select_next(&mut self, _: &SelectNext, cx: &mut ViewContext<'_, Self>)
pub fn cycle_selection(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn refresh(&mut self, cx: &mut ViewContext<'_, Self>)
pub fn update_matches(&mut self, query: String, cx: &mut ViewContext<'_, Self>)
Trait Implementations§
source§impl<D: PickerDelegate> FocusableView for Picker<D>
impl<D: PickerDelegate> FocusableView for Picker<D>
fn focus_handle(&self, cx: &AppContext) -> FocusHandle
Auto Trait Implementations§
impl<D> !RefUnwindSafe for Picker<D>
impl<D> !Send for Picker<D>
impl<D> !Sync for Picker<D>
impl<D> Unpin for Picker<D>where D: Unpin,
impl<D> !UnwindSafe for Picker<D>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more