pub struct LookupResult<'a, TValue, TPath> {
pub path: Vec<TPath>,
pub value: &'a TValue,
}
Expand description
Structure containing a reference to a looked-up value and the path at which it was found.
Fields§
§path: Vec<TPath>
The path at which the value
was found.
value: &'a TValue
The value that was returned.
Trait Implementations§
Source§impl<'a, TValue: Clone, TPath: Clone> Clone for LookupResult<'a, TValue, TPath>
impl<'a, TValue: Clone, TPath: Clone> Clone for LookupResult<'a, TValue, TPath>
Source§fn clone(&self) -> LookupResult<'a, TValue, TPath>
fn clone(&self) -> LookupResult<'a, TValue, TPath>
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
impl<'a, TValue, TPath> Freeze for LookupResult<'a, TValue, TPath>
impl<'a, TValue, TPath> RefUnwindSafe for LookupResult<'a, TValue, TPath>where
TValue: RefUnwindSafe,
TPath: RefUnwindSafe,
impl<'a, TValue, TPath> Send for LookupResult<'a, TValue, TPath>
impl<'a, TValue, TPath> Sync for LookupResult<'a, TValue, TPath>
impl<'a, TValue, TPath> Unpin for LookupResult<'a, TValue, TPath>where
TPath: Unpin,
impl<'a, TValue, TPath> UnwindSafe for LookupResult<'a, TValue, TPath>where
TValue: RefUnwindSafe,
TPath: UnwindSafe,
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