Enum broot::pattern::SearchMode
source · [−]pub enum SearchMode {
NameExact,
NameFuzzy,
NameRegex,
NameTokens,
PathExact,
PathFuzzy,
PathRegex,
PathTokens,
ContentExact,
ContentRegex,
}
Expand description
a valid combination of SearchObject and SearchKind, determine how a pattern will be used
Variants
NameExact
NameFuzzy
NameRegex
NameTokens
PathExact
PathFuzzy
PathRegex
PathTokens
ContentExact
ContentRegex
Implementations
sourceimpl SearchMode
impl SearchMode
sourcepub fn prefix(self, con: &AppContext) -> String
pub fn prefix(self, con: &AppContext) -> String
Return the prefix to type, eg “/” in standard for a name-regex, “” for a name-fuzzy, and “ep” for a path-exact
pub fn object(self) -> SearchObject
pub fn kind(self) -> SearchKind
Trait Implementations
sourceimpl Clone for SearchMode
impl Clone for SearchMode
sourcefn clone(&self) -> SearchMode
fn clone(&self) -> SearchMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SearchMode
impl Debug for SearchMode
sourceimpl Hash for SearchMode
impl Hash for SearchMode
sourceimpl PartialEq<SearchMode> for SearchMode
impl PartialEq<SearchMode> for SearchMode
impl Copy for SearchMode
impl Eq for SearchMode
impl StructuralEq for SearchMode
impl StructuralPartialEq for SearchMode
Auto Trait Implementations
impl RefUnwindSafe for SearchMode
impl Send for SearchMode
impl Sync for SearchMode
impl Unpin for SearchMode
impl UnwindSafe for SearchMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> CallHasher for T where
T: Hash + ?Sized,
impl<T> CallHasher for T where
T: Hash + ?Sized,
sourceimpl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.