equals

open operator override fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this validatable.

Validatables are only compared against the value returned by unwrap. This allows easy comparisons between two validatables:

Validator<UserRegistration> {
constrain { password == passwordConfirmation }
}