pub trait SearchableItemHandle: ItemHandle {
Show 13 methods // Required methods fn downgrade(&self) -> Box<dyn WeakSearchableItemHandle>; fn boxed_clone(&self) -> Box<dyn SearchableItemHandle>; fn supported_options(&self) -> SearchOptions; fn subscribe_to_search_events( &self, cx: &mut WindowContext<'_>, handler: Box<dyn Fn(&SearchEvent, &mut WindowContext<'_>) + Send> ) -> Subscription; fn clear_matches(&self, cx: &mut WindowContext<'_>); fn update_matches( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> ); fn query_suggestion(&self, cx: &mut WindowContext<'_>) -> String; fn activate_match( &self, index: usize, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> ); fn select_matches( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> ); fn replace( &self, _: &Box<dyn Any + Send>, _: &SearchQuery, _: &mut WindowContext<'_> ); fn match_index_for_direction( &self, matches: &Vec<Box<dyn Any + Send>>, current_index: usize, direction: Direction, count: usize, cx: &mut WindowContext<'_> ) -> usize; fn find_matches( &self, query: Arc<SearchQuery>, cx: &mut WindowContext<'_> ) -> Task<Vec<Box<dyn Any + Send>>>; fn active_match_index( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> ) -> Option<usize>;
}

Required Methods§

source

fn downgrade(&self) -> Box<dyn WeakSearchableItemHandle>

source

fn boxed_clone(&self) -> Box<dyn SearchableItemHandle>

source

fn supported_options(&self) -> SearchOptions

source

fn subscribe_to_search_events( &self, cx: &mut WindowContext<'_>, handler: Box<dyn Fn(&SearchEvent, &mut WindowContext<'_>) + Send> ) -> Subscription

source

fn clear_matches(&self, cx: &mut WindowContext<'_>)

source

fn update_matches( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> )

source

fn query_suggestion(&self, cx: &mut WindowContext<'_>) -> String

source

fn activate_match( &self, index: usize, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> )

source

fn select_matches( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> )

source

fn replace( &self, _: &Box<dyn Any + Send>, _: &SearchQuery, _: &mut WindowContext<'_> )

source

fn match_index_for_direction( &self, matches: &Vec<Box<dyn Any + Send>>, current_index: usize, direction: Direction, count: usize, cx: &mut WindowContext<'_> ) -> usize

source

fn find_matches( &self, query: Arc<SearchQuery>, cx: &mut WindowContext<'_> ) -> Task<Vec<Box<dyn Any + Send>>>

source

fn active_match_index( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> ) -> Option<usize>

Trait Implementations§

source§

impl PartialEq<Box<dyn SearchableItemHandle, Global>> for Box<dyn SearchableItemHandle>

source§

fn eq(&self, other: &Self) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Eq for Box<dyn SearchableItemHandle>

Implementations on Foreign Types§

source§

impl<T: SearchableItem> SearchableItemHandle for View<T>

source§

fn downgrade(&self) -> Box<dyn WeakSearchableItemHandle>

source§

fn boxed_clone(&self) -> Box<dyn SearchableItemHandle>

source§

fn supported_options(&self) -> SearchOptions

source§

fn subscribe_to_search_events( &self, cx: &mut WindowContext<'_>, handler: Box<dyn Fn(&SearchEvent, &mut WindowContext<'_>) + Send> ) -> Subscription

source§

fn clear_matches(&self, cx: &mut WindowContext<'_>)

source§

fn update_matches( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> )

source§

fn query_suggestion(&self, cx: &mut WindowContext<'_>) -> String

source§

fn activate_match( &self, index: usize, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> )

source§

fn select_matches( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> )

source§

fn match_index_for_direction( &self, matches: &Vec<Box<dyn Any + Send>>, current_index: usize, direction: Direction, count: usize, cx: &mut WindowContext<'_> ) -> usize

source§

fn find_matches( &self, query: Arc<SearchQuery>, cx: &mut WindowContext<'_> ) -> Task<Vec<Box<dyn Any + Send>>>

source§

fn active_match_index( &self, matches: &Vec<Box<dyn Any + Send>>, cx: &mut WindowContext<'_> ) -> Option<usize>

source§

fn replace( &self, matches: &Box<dyn Any + Send>, query: &SearchQuery, cx: &mut WindowContext<'_> )

Implementors§