Skip to main content

Module keypath

Module keypath 

Source
Expand description

Re-export keypath types for state/action focusing (see optics).

Structs§

EnumKp
EnumKp - A keypath for enum variants that supports both extraction and embedding Leverages the existing Kp architecture where optionals are built-in via Option
Kp
Kp — typed keypath with getter/setter closures. See also AKp for type-erased keypaths.

Traits§

KeyPath
A keypath that supports both read and write navigation.
KpTrait
Logical root/value type identity and composition for a keypath.
Readable
Read-only keypath: navigate from Root to Value.
RefKpTrait
Reference-shaped KpTrait (Root = &R, Value = &V) with HRTB navigation.
Writable
Mutable keypath: setter path (same semantics as a get_mut closure on many keypath APIs).

Type Aliases§

EnumKpType
EnumValueKpType
Casepath whose payload is extracted by value (cloned) rather than by reference.