AnyKeyPath
A type-erased key path, from any root type to any resulting value type.
class AnyKeyPath
Citizens in Swift
Conformances
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable
A type that can be hashed into a
Hasher
to produce an integer hash value.protocol _AppendKeyPath
An implementation detail of key path expressions; do not use this protocol directly.
Members
static var rootType: Any.Type
The root type for this key path.
static var valueType: Any.Type
The value type for this key path.
var debugDescription: String
var hashValue: Int
The hash value.
static func == (AnyKeyPath, AnyKeyPath
) -> Bool func hash(into: inout Hasher
) Hashes the essential components of this value by feeding them into the given hasher.
Features
static func != (Self, Self
) -> Bool func appending(path: AnyKeyPath
) -> AnyKeyPath? Returns a new key path created by appending the given key path to this one.
Subclasses
class PartialKeyPath
A partially type-erased key path, from a concrete root type to any resulting value type.