Skip to main content

is_fallback

Function is_fallback 

Source
pub fn is_fallback(pattern: &str, opts: SearchOptions) -> bool
Expand description

Whether pattern has no usable trigram constraint (so every file is a candidate). The CLI uses this to scan such queries in-process — one process streamed straight to stdout, like ripgrep — instead of paying the daemon round-trip to ship a potentially huge result set back.