pub struct MixedSearchConfig;Expand description
Configuration for mixed (files + directories) search.
Like DirSearchConfig, disables path segment parsing so trailing /
triggers dirs-only mode instead of becoming a constraint. Keeps git
status and extension filters enabled since files are part of the results.
Trait Implementations§
Source§impl Clone for MixedSearchConfig
impl Clone for MixedSearchConfig
Source§fn clone(&self) -> MixedSearchConfig
fn clone(&self) -> MixedSearchConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MixedSearchConfig
impl Debug for MixedSearchConfig
Source§impl Default for MixedSearchConfig
impl Default for MixedSearchConfig
Source§fn default() -> MixedSearchConfig
fn default() -> MixedSearchConfig
Returns the “default value” for a type. Read more
Source§impl ParserConfig for MixedSearchConfig
impl ParserConfig for MixedSearchConfig
Source§fn enable_path_segments(&self) -> bool
fn enable_path_segments(&self) -> bool
Should parse path segments (e.g., /src/)
fn enable_glob(&self) -> bool
Source§fn enable_extension(&self) -> bool
fn enable_extension(&self) -> bool
Should parse extension shortcuts (e.g., *.rs)
Source§fn enable_exclude(&self) -> bool
fn enable_exclude(&self) -> bool
Should parse exclusion patterns (e.g., !test)
Source§fn enable_type_filter(&self) -> bool
fn enable_type_filter(&self) -> bool
Should parse type constraints (e.g., type:rust)
Source§fn enable_git_status(&self) -> bool
fn enable_git_status(&self) -> bool
Should parse git status (e.g., status:modified)
Source§fn enable_location(&self) -> bool
fn enable_location(&self) -> bool
Should parse location suffixes (e.g., file:12, file:12:4)
Disabled for grep modes where colon-number patterns like localhost:8080
are search text, not file locations.
Source§fn is_glob_pattern(&self, token: &str) -> bool
fn is_glob_pattern(&self, token: &str) -> bool
Determine whether a token should be treated as a glob constraint. Read more
Source§fn parse_custom<'a>(&self, _input: &'a str) -> Option<Constraint<'a>>
fn parse_custom<'a>(&self, _input: &'a str) -> Option<Constraint<'a>>
Custom constraint parsers for picker-specific needs
impl Copy for MixedSearchConfig
Auto Trait Implementations§
impl Freeze for MixedSearchConfig
impl RefUnwindSafe for MixedSearchConfig
impl Send for MixedSearchConfig
impl Sync for MixedSearchConfig
impl Unpin for MixedSearchConfig
impl UnsafeUnpin for MixedSearchConfig
impl UnwindSafe for MixedSearchConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more