Expand description
Keypath traits: read/write surfaces, chaining, coercion, and higher-order helpers.
KpTrait composes KpReadable (getter path) and KPWritable (setter path, exposed as
KPWritable::set) plus KpTrait::then.
Traitsยง
- Accessor
Trait - Chain
Ext - Coercion
Trait - HofTrait
- KPWritable
- Mutable keypath surface: setter path (same closure as
Kp::get_mut). - 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. - KpReadable
- Read-only keypath surface: navigate from
RoottoValue(logical value typeV). - KpTrait