FailableResultProtocol

public protocol FailableResultProtocol

Protocol describing a value which might error.

  • The type of the wrapped value

    Declaration

    Swift

    associatedtype Wrapped
  • Either returns the value or throws an error.

    Throws

    An error if the value could not be returned.

    Declaration

    Swift

    func value() throws -> Wrapped

    Return Value

    The contained value