Struct ra_ap_hir::import_map::Query
source · pub struct Query { /* private fields */ }
Implementations§
source§impl Query
impl Query
pub fn new(query: String) -> Query
sourcepub fn name_only(self) -> Query
pub fn name_only(self) -> Query
Matches entries’ names only, ignoring the rest of
the qualifier.
Example: for std::marker::PhantomData
, the name is PhantomData
.
sourcepub fn assoc_items_only(self) -> Query
pub fn assoc_items_only(self) -> Query
Matches only the entries that are associated items, ignoring the rest.
sourcepub fn search_mode(self, search_mode: SearchMode) -> Query
pub fn search_mode(self, search_mode: SearchMode) -> Query
Specifies the way to search for the entries using the query.
sourcepub fn case_sensitive(self) -> Query
pub fn case_sensitive(self) -> Query
Respect casing of the query string when matching.
sourcepub fn exclude_import_kind(self, import_kind: ImportKind) -> Query
pub fn exclude_import_kind(self, import_kind: ImportKind) -> Query
Do not include imports of the specified kind in the search results.