pub struct QueryMatch<'s, S>{
pub path: SmolStr,
pub value: Option<&'s Data<S>>,
}Expand description
A single match from a query operation
Fields§
§path: SmolStrPath where this value was found (e.g., “actors[0].handle”)
value: Option<&'s Data<S>>The value (None if field was missing during wildcard iteration)
Trait Implementations§
Source§impl<'s, S> Clone for QueryMatch<'s, S>
impl<'s, S> Clone for QueryMatch<'s, S>
Source§fn clone(&self) -> QueryMatch<'s, S>
fn clone(&self) -> QueryMatch<'s, S>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'s, S> Debug for QueryMatch<'s, S>
impl<'s, S> Debug for QueryMatch<'s, S>
Source§impl<'s, S> PartialEq for QueryMatch<'s, S>
impl<'s, S> PartialEq for QueryMatch<'s, S>
Source§fn eq(&self, other: &QueryMatch<'s, S>) -> bool
fn eq(&self, other: &QueryMatch<'s, S>) -> bool
Tests for
self and other values to be equal, and is used by ==.impl<'s, S> StructuralPartialEq for QueryMatch<'s, S>
Auto Trait Implementations§
impl<'s, S> Freeze for QueryMatch<'s, S>
impl<'s, S> RefUnwindSafe for QueryMatch<'s, S>where
S: RefUnwindSafe,
impl<'s, S> Send for QueryMatch<'s, S>where
S: Sync,
impl<'s, S> Sync for QueryMatch<'s, S>where
S: Sync,
impl<'s, S> Unpin for QueryMatch<'s, S>
impl<'s, S> UnsafeUnpin for QueryMatch<'s, S>
impl<'s, S> UnwindSafe for QueryMatch<'s, S>where
S: RefUnwindSafe,
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