Module str

Expand description

str Predicate factories

This module contains predicates specific to string handling.

Functionsยง

contains
Creates a new Predicate that ensures a str contains pattern
diff
Creates a new Predicate that diffs two strings.
ends_with
Creates a new Predicate that ensures a str ends with pattern
is_empty
Creates a new Predicate that ensures a str is empty
is_match
Creates a new Predicate that uses a regular expression to match the string.
similar
Creates a new Predicate that checks strings for how similar they are.
starts_with
Creates a new Predicate that ensures a str starts with pattern