pub struct FFFQuery<'a> {
pub raw_query: &'a str,
pub constraints: Vec<Constraint<'a>>,
pub fuzzy_query: FuzzyQuery<'a>,
pub location: Option<Location>,
}Fields§
§raw_query: &'a strThe original raw query string before parsing
constraints: Vec<Constraint<'a>>Parsed constraints (stack-allocated for ≤8 constraints)
fuzzy_query: FuzzyQuery<'a>§location: Option<Location>Parsed location (e.g., file:12:4 -> line 12, col 4)
Implementations§
Source§impl<'a> FFFQuery<'a>
impl<'a> FFFQuery<'a>
Sourcepub fn grep_text(&self) -> String
pub fn grep_text(&self) -> String
Returns the grep search text by joining all non-constraint text tokens.
Backslash-escaped tokens (e.g. \*.rs) are included as literal text
with the leading \ stripped, since the backslash is only an escape
signal to the parser and should not appear in the final pattern.
FuzzyQuery::Empty → empty string
FuzzyQuery::Text("foo") → "foo"
FuzzyQuery::Parts(["a", "\\*.rs", "b"]) → "a *.rs b"
Trait Implementations§
impl<'a> StructuralPartialEq for FFFQuery<'a>
Auto Trait Implementations§
impl<'a> Freeze for FFFQuery<'a>
impl<'a> RefUnwindSafe for FFFQuery<'a>
impl<'a> Send for FFFQuery<'a>
impl<'a> Sync for FFFQuery<'a>
impl<'a> Unpin for FFFQuery<'a>
impl<'a> UnsafeUnpin for FFFQuery<'a>
impl<'a> UnwindSafe for FFFQuery<'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
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