Expand description
Keypath traits: read/write surfaces, chaining, coercion, and higher-order helpers.
KpTrait composes Readable (getter path) and Writable (setter path, exposed as
Writable::set) plus KpTrait::then.
Traitsยง
- Accessor
Trait - Chain
Ext - Coercion
Trait - HofTrait
- KeyPath
Value Target - Used so that
then_asynccan inferV2fromAsyncKp::Valuewithout ambiguity (e.g.&i32has bothBorrow<i32>andBorrow<&i32>; this picks the referent). Implemented only for reference types so there is no overlap with the blanket impl. - KpTrait
- Readable
- Read-only keypath surface: navigate from
RoottoValue(logical value typeV). - Writable
- Mutable keypath surface: setter path (same closure as
Kp::get_mut).