pub struct KeyPath<Root, Value> { /* private fields */ }Expand description
A keypath represents a path to a property in a data structure. This is a functional equivalent to Swift’s KeyPath.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<Root, Value> Freeze for KeyPath<Root, Value>
impl<Root, Value> !RefUnwindSafe for KeyPath<Root, Value>
impl<Root, Value> !Send for KeyPath<Root, Value>
impl<Root, Value> !Sync for KeyPath<Root, Value>
impl<Root, Value> Unpin for KeyPath<Root, Value>
impl<Root, Value> !UnwindSafe for KeyPath<Root, Value>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more