pub struct Everything<Q, R, F>where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,{ /* private fields */ }
Expand description
Recursively perform a query in a top-down, left-to-right manner across a
data structure. The Q: Query<R>
queries individual values, while the F: FnMut(R, R) -> R
joins the results of multiple queries into a single
result.
Implementations§
Source§impl<Q, R, F> Everything<Q, R, F>where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,
impl<Q, R, F> Everything<Q, R, F>where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,
Sourcepub fn new(q: Q, fold: F) -> Everything<Q, R, F>
pub fn new(q: Q, fold: F) -> Everything<Q, R, F>
Construct a new Everything
query traversal.
Trait Implementations§
Source§impl<Q, R: Debug, F> Debug for Everything<Q, R, F>
impl<Q, R: Debug, F> Debug for Everything<Q, R, F>
Source§impl<Q, R, F> GenericQuery<R> for Everything<Q, R, F>where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,
impl<Q, R, F> GenericQuery<R> for Everything<Q, R, F>where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,
Auto Trait Implementations§
impl<Q, R, F> Freeze for Everything<Q, R, F>
impl<Q, R, F> RefUnwindSafe for Everything<Q, R, F>where
Q: RefUnwindSafe,
F: RefUnwindSafe,
impl<Q, R, F> Send for Everything<Q, R, F>
impl<Q, R, F> Sync for Everything<Q, R, F>
impl<Q, R, F> Unpin for Everything<Q, R, F>
impl<Q, R, F> UnwindSafe for Everything<Q, R, F>where
Q: UnwindSafe,
F: 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