Module str

Module str 

Source
Expand description

String Predicates

This module contains predicates specific to string handling.

Structs§

ContainsPredicate
Predicate that checks for patterns.
EndsWithPredicate
Predicate checks end of str
IsEmptyPredicate
Predicate that checks for empty strings.
MatchesPredicate
Predicate that checks for repeated patterns.
StartsWithPredicate
Predicate checks start of str
TrimPredicate
Predicate adaper that trims the variable being tested.
Utf8Predicate
Predicate adaper that converts a str predicate to byte predicate.

Traits§

PredicateStrExt
Predicate extension adapting a str Predicate.

Functions§

contains
Creates a new Predicate that ensures a str contains pattern
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
starts_with
Creates a new Predicate that ensures a str starts with pattern