Crate rust_keypaths

Crate rust_keypaths 

Source

Modules§

containers

Macros§

keypath
Macro to create a KeyPath (readable, non-optional)
opt_keypath
Macro to create an OptionalKeyPath (readable, optional)
writable_keypath
Macro to create a WritableKeyPath (writable, non-optional)
writable_opt_keypath
Macro to create a WritableOptionalKeyPath (writable, optional)

Structs§

AnyKeyPath
AnyKeyPath - Hides both Root and Value types Equivalent to Swift’s AnyKeyPath Useful for storing keypaths in collections without knowing either type
AnyWritableKeyPath
AnyWritableKeyPath - Hides both Root and Value types (writable)
EnumKeyPath
EnumKeyPath - A keypath for enum variants that supports both extraction and embedding Uses generic type parameters instead of dynamic dispatch for zero-cost abstraction
FailableCombinedKeyPath
FailableCombinedKeyPath - A keypath that supports readable, writable, and owned access patterns
KeyPath
OptionalKeyPath
PartialKeyPath
PartialKeyPath - Hides the Value type but keeps Root visible Useful for storing keypaths in collections without knowing the exact Value type
PartialOptionalKeyPath
PartialOptionalKeyPath - Hides the Value type but keeps Root visible Useful for storing optional keypaths in collections without knowing the exact Value type
PartialWritableKeyPath
PartialWritableKeyPath - Hides the Value type but keeps Root visible (writable)
PartialWritableOptionalKeyPath
PartialWritableOptionalKeyPath - Hides the Value type but keeps Root visible (writable optional)
WritableKeyPath
WritableOptionalKeyPath

Traits§

WithContainer
Trait for no-clone callback-based access to container types Provides methods to execute closures with references to values inside containers without requiring cloning of the values

Functions§

for_slice
variant_of