matches

Function matches 

Source
pub fn matches(query: &str, text: &str) -> bool
Expand description

Check if a query matches text (simple boolean check).

§Arguments

  • query - The search query
  • text - The text to search within

§Returns

true if the query matches the text, false otherwise.