Generic Class

KeyPath

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

Declaration

class KeyPath<Root, Value> : PartialKeyPath<Root>

Topics

Instance Methods

func appending(path: AnyKeyPath) -> AnyKeyPath?

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

func appending<Root, Value, AppendedValue>(path: KeyPath<Value, AppendedValue>) -> KeyPath<Root, AppendedValue>

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

func appending<Root>(path: AnyKeyPath) -> PartialKeyPath<Root>?

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

Operator Functions

static func != (KeyPath<Root, Value>, KeyPath<Root, Value>) -> Bool

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

Relationships

Inherits From

See Also

Key Paths

class PartialKeyPath

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

class AnyKeyPath

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

protocol _AppendKeyPath

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