Skip to main content

KeyPathValueTarget

Trait KeyPathValueTarget 

Source
pub trait KeyPathValueTarget {
    type Target: Sized;
}
Expand description

Used so that then_async can infer V2 from AsyncKp::Value without ambiguity (e.g. &i32 has both Borrow<i32> and Borrow<&i32>; this picks the referent). Implemented only for reference types so there is no overlap with the blanket impl.

Required Associated Types§

Implementations on Foreign Types§

Source§

impl<T> KeyPathValueTarget for &T

Source§

impl<T> KeyPathValueTarget for &mut T

Implementors§