#[non_exhaustive]pub struct EverythingSearcher<'a> { /* private fields */ }Implementations§
Source§impl<'a> EverythingSearcher<'a>
impl<'a> EverythingSearcher<'a>
Sourcepub fn set_search(
&mut self,
text: impl AsRef<OsStr>,
) -> &mut EverythingSearcher<'a>
pub fn set_search( &mut self, text: impl AsRef<OsStr>, ) -> &mut EverythingSearcher<'a>
empty string “” by default.
Sourcepub fn set_match_path(&mut self, enable: bool) -> &mut EverythingSearcher<'a>
pub fn set_match_path(&mut self, enable: bool) -> &mut EverythingSearcher<'a>
disable (false) by default.
Sourcepub fn set_match_case(&mut self, enable: bool) -> &mut EverythingSearcher<'a>
pub fn set_match_case(&mut self, enable: bool) -> &mut EverythingSearcher<'a>
disable (false) by default.
Sourcepub fn set_match_whole_word(
&mut self,
enable: bool,
) -> &mut EverythingSearcher<'a>
pub fn set_match_whole_word( &mut self, enable: bool, ) -> &mut EverythingSearcher<'a>
disable (false) by default.
Sourcepub fn set_regex(&mut self, enable: bool) -> &mut EverythingSearcher<'a>
pub fn set_regex(&mut self, enable: bool) -> &mut EverythingSearcher<'a>
disable (false) by default.
Sourcepub fn set_max(&mut self, max_results: u32) -> &mut EverythingSearcher<'a>
pub fn set_max(&mut self, max_results: u32) -> &mut EverythingSearcher<'a>
u32::MAX (0xffffffff) by default, which means all results.
Sourcepub fn set_offset(&mut self, offset: u32) -> &mut EverythingSearcher<'a>
pub fn set_offset(&mut self, offset: u32) -> &mut EverythingSearcher<'a>
zero (0) by default.
Sourcepub fn set_sort(&mut self, sort_type: SortType) -> &mut EverythingSearcher<'a>
pub fn set_sort(&mut self, sort_type: SortType) -> &mut EverythingSearcher<'a>
The default sort is EVERYTHING_SORT_NAME_ASCENDING (1). This sort is free.
Sourcepub fn set_request_flags(
&mut self,
flags: RequestFlags,
) -> &mut EverythingSearcher<'a>
pub fn set_request_flags( &mut self, flags: RequestFlags, ) -> &mut EverythingSearcher<'a>
The default request flags are EVERYTHING_REQUEST_FILE_NAME | EVERYTHING_REQUEST_PATH (0x00000003).
pub fn get_search(&self) -> OsString
pub fn get_match_path(&self) -> bool
pub fn get_match_case(&self) -> bool
pub fn get_match_whole_word(&self) -> bool
pub fn get_regex(&self) -> bool
pub fn get_max(&self) -> u32
pub fn get_offset(&self) -> u32
pub fn get_sort(&self) -> SortType
pub fn get_request_flags(&self) -> RequestFlags
Source§impl<'a> EverythingSearcher<'a>
impl<'a> EverythingSearcher<'a>
Sourcepub fn query<'b>(&'b mut self) -> EverythingResults<'b>
pub fn query<'b>(&'b mut self) -> EverythingResults<'b>
Execute an Everything IPC query with the current search state.
It may take some time if you query a lot of items. Therefore, blocking needs to be
considered in specific situations. (run it in new thread or use the async feature)
Sourcepub fn _query_and_sort_by_path<'b>(&'b mut self) -> EverythingResults<'b>
pub fn _query_and_sort_by_path<'b>(&'b mut self) -> EverythingResults<'b>
Query and sort the results by path then file name in place.
NOT RECOMMENDED! Use searcher.set_sort(_) instead.
Trait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for EverythingSearcher<'a>
impl<'a> RefUnwindSafe for EverythingSearcher<'a>
impl<'a> Send for EverythingSearcher<'a>
impl<'a> Sync for EverythingSearcher<'a>
impl<'a> Unpin for EverythingSearcher<'a>
impl<'a> UnwindSafe for EverythingSearcher<'a>
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