AnyValidator

extension AnyValidator
  • 重写为AnyValidator自身

    Declaration

    Swift

    public var anyValidator: AnyValidator { get }
  • 重写为AnyValidator自身

    Declaration

    Swift

    public var unsafeAnyValidator: AnyValidator { get }
  • 初始化包装验证器并转发调用,默认开启类型验证(可关闭)

    Declaration

    Swift

    public init<WrappedValue>(
        _ validator: Validator<WrappedValue>,
        validateType: Bool = true
    )