Struct scrapmetal::Everything
[−]
[src]
pub struct Everything<Q, R, F> where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R, { /* fields omitted */ }
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.
Methods
impl<Q, R, F> Everything<Q, R, F> where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,
[src]
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,
fn new(q: Q, fold: F) -> Everything<Q, R, F>
Construct a new Everything
query traversal.
Trait Implementations
impl<Q: Debug, R: Debug, F: Debug> Debug for Everything<Q, R, F> where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,
[src]
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,
[src]
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,