A type-erased key path, from any root type to any resulting value type. NOTE: older runtimes had Swift.AnyKeyPath as the ObjC name. The two must coexist, so it was renamed. The old name must not be used in the new runtime. _TtCs11_AnyKeyPath is the mangled name for Swift._AnyKeyPath.


class AnyKeyPath


Instance Properties

var hashValue: Int

The hash value.

Type Properties

static var rootType: Any.Type

The root type for this key path.

static var valueType: Any.Type

The value type for this key path.

Instance Methods

func appending(path: AnyKeyPath) -> AnyKeyPath?

Returns a new key path created by appending the given key path to this one.

func hash(into: inout Hasher)

Hashes the essential components of this value by feeding them into the given hasher.

Operator Functions

static func != (AnyKeyPath, AnyKeyPath) -> Bool

Returns a Boolean value indicating whether two values are not equal.


See Also

Key Paths

class KeyPath

A key path from a specific root type to a specific resulting value type.

class PartialKeyPath

A partially type-erased key path, from a concrete root type to any resulting value type.

protocol _AppendKeyPath

An implementation detail of key path expressions; do not use this protocol directly.