Module predicates::str[][src]

Expand description

String Predicates

This module contains predicates specific to string handling.

Structs

Predicate that checks for patterns.

Predicate that diffs two strings.

Predicate checks end of str

Predicate that checks for empty strings.

Predicate that checks for repeated patterns.

Predicate adapter that normalizes the newlines contained in the variable being tested.

Predicate that uses regex matching

Predicate checks start of str

Predicate adaper that trims the variable being tested.

Predicate adaper that converts a str predicate to byte predicate.

Traits

Predicate extension adapting a str Predicate.

Functions

Creates a new Predicate that ensures a str contains pattern

Creates a new Predicate that diffs two strings.

Creates a new Predicate that ensures a str ends with pattern

Creates a new Predicate that ensures a str is empty

Creates a new Predicate that uses a regular expression to match the string.

Creates a new Predicate that ensures a str starts with pattern

Type Definitions

An error that occurred during parsing or compiling a regular expression.