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]

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]

Formats the value using the given formatter.

impl<Q, R, F> GenericQuery<R> for Everything<Q, R, F> where
    Q: GenericQuery<R>,
    F: FnMut(R, R) -> R, 
[src]

Call the query function on any T.