Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Method

set(_:to:)

Set a value to the Extend storage.
mutating func set<T>(_ key: AnyKeyPath, to newValue: T)

Discussion

KeyPath-based alternative to set(_:to:).

extend.set(\MyType.Foo, to: foo)