pub struct ReadableKeyPath<Root, Value> {
pub get: Box<dyn for<'a> Fn(&'a Root) -> &'a Value>,
}
Expand description
Read-only keypath
Fields§
§get: Box<dyn for<'a> Fn(&'a Root) -> &'a Value>
Implementations§
Source§impl<Root, Value> ReadableKeyPath<Root, Value>
impl<Root, Value> ReadableKeyPath<Root, Value>
Source§impl<Root, Mid> ReadableKeyPath<Root, Mid>where
Root: 'static,
Mid: 'static,
impl<Root, Mid> ReadableKeyPath<Root, Mid>where
Root: 'static,
Mid: 'static,
pub fn compose<Value>(
self,
mid: ReadableKeyPath<Mid, Value>,
) -> ReadableKeyPath<Root, Value>where
Value: 'static,
Auto Trait Implementations§
impl<Root, Value> Freeze for ReadableKeyPath<Root, Value>
impl<Root, Value> !RefUnwindSafe for ReadableKeyPath<Root, Value>
impl<Root, Value> !Send for ReadableKeyPath<Root, Value>
impl<Root, Value> !Sync for ReadableKeyPath<Root, Value>
impl<Root, Value> Unpin for ReadableKeyPath<Root, Value>
impl<Root, Value> !UnwindSafe for ReadableKeyPath<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