A key path that supports reading from and writing to the resulting value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
class WritableKeyPath<Root, Value> : KeyPath <Root, Value>
A key path that supports reading from and writing to the resulting value.
SDK
Framework
class WritableKeyPath<Root, Value> : KeyPath <Root, Value>
func appending<Root>(path: AnyKeyPath) -> PartialKeyPath<Root>?
Returns a new key path created by appending the given key path to this one.
func appending<Root, AppendedRoot, AppendedValue>( path: ReferenceWritableKeyPath<AppendedRoot, AppendedValue>) -> ReferenceWritableKeyPath<Root, AppendedValue>?
Returns a new key path created by appending the given key path to this one.
func appending<Root, Value, AppendedValue>( path: ReferenceWritableKeyPath<Value, AppendedValue>) -> ReferenceWritableKeyPath<Root, AppendedValue>
Returns a new key path created by appending the given key path to this one.
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: WritableKeyPath<Value, AppendedValue>) -> ReferenceWritableKeyPath<Root, AppendedValue>
Returns a new key path created by appending the given key path to this one.
func appending<Root, AppendedRoot, AppendedValue>( path: KeyPath<AppendedRoot, AppendedValue>) -> KeyPath<Root, AppendedValue>?
Returns a new key path created by appending the given key path to this one.
func appending<Root, Value, AppendedValue>( path: ReferenceWritableKeyPath<Value, AppendedValue>) -> ReferenceWritableKeyPath<Root, AppendedValue>
Returns a new key path created by appending the given key path to this one.
func appending<Root, Value, AppendedValue>( path: WritableKeyPath<Value, AppendedValue>) -> WritableKeyPath<Root, AppendedValue>
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.
static func != (WritableKeyPath<Root, Value>, WritableKeyPath<Root, Value>) -> Bool
Returns a Boolean value indicating whether two values are not equal.
class ReferenceWritableKeyPath
A key path that supports reading from and writing to the resulting value with reference semantics.