Expand description
String Predicates
This module contains predicates specific to string handling.
Structs§
- Contains
Predicate - Predicate that checks for patterns.
- Ends
With Predicate - Predicate checks end of str
- IsEmpty
Predicate - Predicate that checks for empty strings.
- Matches
Predicate - Predicate that checks for repeated patterns.
- Starts
With Predicate - Predicate checks start of str
- Trim
Predicate - Predicate adaper that trims the variable being tested.
- Utf8
Predicate - Predicate adaper that converts a
strpredicate to byte predicate.
Traits§
- Predicate
StrExt Predicateextension adapting astrPredicate.
Functions§
- contains
- Creates a new
Predicatethat ensures a str containspattern - ends_
with - Creates a new
Predicatethat ensures a str ends withpattern - is_
empty - Creates a new
Predicatethat ensures a str is empty - starts_
with - Creates a new
Predicatethat ensures a str starts withpattern