Skip to main content

Module kptrait

Module kptrait 

Source
Expand description

Keypath extensions for crate::Kp: chaining, coercion, and higher-order helpers.

Core read/write traits live in key_paths_core. This module adds Kp-specific APIs.

Traitsยง

AccessorTrait
Optional-root and fallback helpers built on Readable / Writable.
ChainExt
CoercionTrait
HofTrait
KeyPath
A keypath that supports both read and write navigation.
KeyPathValueTarget
Used so async chaining can infer the referent of a reference-valued step (e.g. &T and &mut T both map to T).
KpTrait
Logical root/value type identity and composition for a keypath.
Readable
Read-only keypath: navigate from Root to Value.
Writable
Mutable keypath: setter path (same semantics as a get_mut closure on many keypath APIs).