Struct command_palette2::CommandPaletteDelegate
source · pub struct CommandPaletteDelegate { /* private fields */ }
Trait Implementations§
source§impl PickerDelegate for CommandPaletteDelegate
impl PickerDelegate for CommandPaletteDelegate
type ListItem = Div
fn placeholder_text(&self) -> Arc<str>
fn match_count(&self) -> usize
fn selected_index(&self) -> usize
fn set_selected_index( &mut self, ix: usize, _: &mut ViewContext<'_, Picker<Self>> )
fn update_matches( &mut self, query: String, cx: &mut ViewContext<'_, Picker<Self>> ) -> Task<()>
fn dismissed(&mut self, cx: &mut ViewContext<'_, Picker<Self>>)
fn confirm(&mut self, _: bool, cx: &mut ViewContext<'_, Picker<Self>>)
fn render_match( &self, ix: usize, selected: bool, cx: &mut ViewContext<'_, Picker<Self>> ) -> Self::ListItem
Auto Trait Implementations§
impl !RefUnwindSafe for CommandPaletteDelegate
impl !Send for CommandPaletteDelegate
impl !Sync for CommandPaletteDelegate
impl Unpin for CommandPaletteDelegate
impl !UnwindSafe for CommandPaletteDelegate
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