Criterium: Criterium Chain

Criterium Chain from the criterium crate.

The criterium chain is used to combine multiple criteria of the same type using boolean logic. Multiple chains can be nested.

You can use the variants of the contained criterium directly in place of where the chain would go. Under the hood this will generate a chain of the match variant tha matches when the contained criterium matches.

The number matching criterium has the following variants:

and
Takes a list of chains of the same type as argument.
Matches if all of the given chains match.
or
Takes a list of chains of the same type as argument.
Matches if at least one of the given chains match.
not
Takes a single chain as argument.
Matches if the contained chain does not match.
always
Takes no argument.
Always matches.
never
Takes no argument.
Never matches.
not_match
Takes a criterium matching the chain type as argument.
Matches if the contained criterium does not match.
match (invisible variant)
Takes a criterium matching the chain type as argument.
Matches if the contained criterium marches, this one is just a type adaptor.
This variant is invisible (untagged), you can use the argument it would take directly in place of this variant and it will be contsructed auutomatically.