Skip to main content

SearchSource

Trait SearchSource 

pub trait SearchSource: Widget {
    // Provided methods
    fn search_providers(&self) -> Vec<Box<dyn SearchProvider>> { ... }
    fn activate_search_result(
        &mut self,
        _action_id: &str,
        _doc: &mut Edits<'_>,
        _path: &(dyn Any + 'static),
    ) { ... }
}
Expand description

A widget whose content is searchable.

Provided Methods§

fn search_providers(&self) -> Vec<Box<dyn SearchProvider>>

One SearchProvider per findable kind.

fn activate_search_result( &mut self, _action_id: &str, _doc: &mut Edits<'_>, _path: &(dyn Any + 'static), )

Activate a hit: presentation (navigation), not a document action; mutate the model only if selecting changes shared state.

Implementors§

§

impl SearchSource for TileHost

§

impl<K> SearchSource for ModelView<K>
where K: PartialEq + 'static,