Skip to main content

is_match

Function is_match 

Source
pub fn is_match(needle: &str, haystack: &str) -> bool
Expand description

Whether needle matches at all, without paying for the scoring.

A cheap gate in front of best_match, since most candidates in a long list do not match and every one that fails here costs a single pass.