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