operator & method

IValidator operator &(
  1. IValidator other
)

Combines two validators with a logical AND, same as using all

This is Sugar, it allows for more concise validator composition.

Implementation

IValidator operator &(IValidator other) => all([this, other]);