Poly2

public enum Poly2<A, B> : _Poly2
extension Poly2: CustomStringConvertible
extension Poly2: Encodable where A: Encodable, B: Encodable
extension Poly2: Decodable where A: Decodable, B: Decodable
extension Poly2: Equatable where A: Equatable, B: Equatable
extension Poly2: Hashable where A: Hashable, B: Hashable

See Poly for documentation

  • Undocumented

    Declaration

    Swift

    case a(A)
  • Undocumented

    Declaration

    Swift

    case b(B)
  • a

    Declaration

    Swift

    public var a: A? { get }
  • Undocumented

    Declaration

    Swift

    public init(_ a: A)
  • b

    Declaration

    Swift

    public var b: B? { get }
  • Undocumented

    Declaration

    Swift

    public init(_ b: B)
  • Declaration

    Swift

    public var value: Any { get }
  • Undocumented

    Declaration

    Swift

    public static var allTypes: [Any.Type] { get }
  • Declaration

    Swift

    public var description: String { get }

Available where A: Encodable, B: Encodable

  • Declaration

    Swift

    public func encode(to encoder: Encoder) throws

Available where A: Decodable, B: Decodable

  • Declaration

    Swift

    public init(from decoder: Decoder) throws