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.
-
Creates an instance with the given key and value.
Declaration
Swift
public init(key: Key, value: Value) -
Undocumented
Declaration
Swift
public var key: Key -
Undocumented
Declaration
Swift
public var value: Value -
Declaration
Swift
public struct ProjectKey : Lens -
Declaration
Swift
public struct ProjectValue : Lens
-
Declaration
Swift
public static func < (a: `Self`, b: `Self`) -> Bool
-
Deserializes a new instance from the given decoder.
Declaration
Swift
public init(from decoder: Decoder) throws
-
Serializes
selfinto the given encoder.Declaration
Swift
public func encode(to encoder: Encoder) throws
View on GitHub
KeyValuePair Structure Reference