Skip to main content

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)
ArcMutexKeyPathChain
A composed keypath chain through Arc<Mutex> - functional style Build the chain first, then apply container at get() time
ArcMutexOptionalKeyPathChain
A composed optional keypath chain through Arc<Mutex> - functional style
ArcMutexWritableKeyPathChain
A composed writable keypath chain through Arc<Mutex> - functional style Build the chain first, then apply container at get_mut() time
ArcMutexWritableOptionalKeyPathChain
A composed writable optional keypath chain through Arc<Mutex> - functional style
ArcRwLockKeyPathChain
A composed keypath chain through Arc<RwLock> - functional style Build the chain first, then apply container at get() time
ArcRwLockOptionalKeyPathChain
A composed optional keypath chain through Arc<RwLock> - functional style
ArcRwLockWritableKeyPathChain
A composed writable keypath chain through Arc<RwLock> - functional style Build the chain first, then apply container at get_mut() time (uses write lock)
ArcRwLockWritableOptionalKeyPathChain
A composed writable optional keypath chain through Arc<RwLock> - functional style Build the chain first, then apply container at get_mut() time (uses write lock)
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
OptionalArcMutexKeyPathChain
A composed keypath chain from OptionalKeyPath through Arc<Mutex> - functional style
OptionalArcMutexOptionalKeyPathChain
A composed optional keypath chain from OptionalKeyPath through Arc<Mutex> - functional style
OptionalArcMutexWritableKeyPathChain
A composed writable keypath chain from optional keypath through Arc<Mutex> - functional style Build the chain first, then apply container at get_mut() time
OptionalArcMutexWritableOptionalKeyPathChain
A composed writable optional keypath chain from optional keypath through Arc<Mutex> - functional style Build the chain first, then apply container at get_mut() time
OptionalArcRwLockKeyPathChain
A composed keypath chain from OptionalKeyPath through Arc<RwLock> - functional style
OptionalArcRwLockOptionalKeyPathChain
A composed optional keypath chain from OptionalKeyPath through Arc<RwLock> - functional style
OptionalArcRwLockWritableKeyPathChain
A composed writable keypath chain from optional keypath through Arc<RwLock> - functional style Build the chain first, then apply container at get_mut() time (uses write lock)
OptionalArcRwLockWritableOptionalKeyPathChain
A composed writable optional keypath chain from optional keypath through Arc<RwLock> - functional style Build the chain first, then apply container at get_mut() time (uses write lock)
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