KeyValuePair

public struct KeyValuePair<Key, Value>
extension KeyValuePair: Equatable where Key: Equatable, Value: Equatable
extension KeyValuePair: Comparable where Key: Comparable, Value: Comparable
extension KeyValuePair: Hashable where Key: Hashable, Value: Hashable
extension KeyValuePair
  : Decodable where Key : Decodable, Value : Decodable
extension KeyValuePair : Encodable
  where Key : Encodable, Value : Encodable

A nominal version of the tuple type that is the Element of Swift.Dictionary.

Available where Key: Comparable, Value: Comparable

Available where Key : Decodable, Value : Decodable

  • Deserializes a new instance from the given decoder.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

Available where Key : Encodable, Value : Encodable

  • Serializes self into the given encoder.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws