Struct EverythingSearcher

Source
#[non_exhaustive]
pub struct EverythingSearcher<'a> { /* private fields */ }

Implementations§

Source§

impl<'a> EverythingSearcher<'a>

empty string “” by default.

Source

pub fn set_match_path(&mut self, enable: bool) -> &mut EverythingSearcher<'a>

disable (false) by default.

Source

pub fn set_match_case(&mut self, enable: bool) -> &mut EverythingSearcher<'a>

disable (false) by default.

Source

pub fn set_match_whole_word( &mut self, enable: bool, ) -> &mut EverythingSearcher<'a>

disable (false) by default.

Source

pub fn set_regex(&mut self, enable: bool) -> &mut EverythingSearcher<'a>

disable (false) by default.

Source

pub fn set_max(&mut self, max_results: u32) -> &mut EverythingSearcher<'a>

u32::MAX (0xffffffff) by default, which means all results.

Source

pub fn set_offset(&mut self, offset: u32) -> &mut EverythingSearcher<'a>

zero (0) by default.

Source

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.

Source

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).

Source

pub fn get_match_path(&self) -> bool

Source

pub fn get_match_case(&self) -> bool

Source

pub fn get_match_whole_word(&self) -> bool

Source

pub fn get_regex(&self) -> bool

Source

pub fn get_max(&self) -> u32

Source

pub fn get_offset(&self) -> u32

Source

pub fn get_sort(&self) -> SortType

Source

pub fn get_request_flags(&self) -> RequestFlags

Source§

impl<'a> EverythingSearcher<'a>

Source

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)

Source

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§

Source§

impl Drop for EverythingSearcher<'_>

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more

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> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more