ReactiveSwift Docs

View on GitHub

Install in Dash

ReactiveSwift Reference Result Enumeration Reference

Result

public enum Result

Represents the result of the validation performed by a validating property.

  • The proposed value is valid.

    Declaration

    Swift

    case valid(Value)
  • The proposed value is invalid, but the validator was able to coerce it into a replacement which it deemed valid.

    Declaration

    Swift

    case coerced(replacement: Value, proposed: Value, error: ValidationError?)
  • The proposed value is invalid.

    Declaration

    Swift

    case invalid(Value, ValidationError)
  • Whether the value is invalid.

    Declaration

    Swift

    public var isInvalid: Bool { get }
  • Extract the valid value, or nil if the value is invalid.

    Declaration

    Swift

    public var value: Value? { get }
  • Extract the error if the value is invalid.

    Declaration

    Swift

    public var error: ValidationError? { get }

© 2020 ReactiveCocoa. All rights reserved. (Last updated: 2020年01月07日)

Generated by jazzy ♪♫ v0.13.0, a Realm project.

AltStyle によって変換されたページ (->オリジナル) /