And

public struct And<
    V1: Validator,
    V2: Validator>: Validator where
    V1.WrappedType == V2.WrappedType

Validator wrapper which is valid when V1 and V2 validated to true.

  • Validator wrapper which is valid when V1 and V2 validated to true.

    Declaration

    Swift

    public static func validate(_ value: V1.WrappedType) throws -> Bool

    Parameters

    validate

    An instance of the WrappedType

    Return Value

    A Bool indicating success(true)/failure(false) of the validation