Module simple_string_patterns::simple_match

source ·

Traits§

  • Return the indices of all ocurrences of a string
  • Test if character set (CharType) is in the string
  • Test multiple patterns and return a filtered vector of string slices by all pattern rules
  • Test multiple patterns and return a filtered vector of string slices by any of the pattern rules
  • Regex-free matcher methods for common use cases There are no plain and _cs-suffixed variants because the standard starts_with(pat: &str), contains(pat: &str) and ends_with(pat: &str) methods meet those needs
  • Test multiple patterns and return boolean
  • Test for any of multiple pattern rules and return boolean
  • Test multiple patterns and return vector of booleans with the results for each item