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§
- Field
Diff - State types implement this so subscribers can detect which fields changed by comparing per-field hashes — never by cloning the whole value.
- 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
RoottoValue. - RefKp
Trait - Reference-shaped
KpTrait(Root = &R,Value = &V) with HRTB navigation. - Writable
- Mutable keypath: setter path (same semantics as a
get_mutclosure on many keypath APIs).
Functions§
- hash_
value - Hash any
Hashvalue without cloning it.
Type Aliases§
- Enum
KpType - Enum
Value KpType - Casepath whose payload is extracted by value (cloned) rather than by reference.