Not

public struct Not<V1: Validator>: Validator

Validator wrapper which is valid when V1 validated to false.

  • Validator wrapper which is valid when V1 validated to false.

    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