pub struct FFFQuery<'a> {
pub raw_query: &'a str,
pub constraints: ConstraintVec<'a>,
pub fuzzy_query: FuzzyQuery<'a>,
pub location: Option<Location>,
}Fields§
§raw_query: &'a strThe original raw query string before parsing
constraints: ConstraintVec<'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