Trait scrapmetal::GenericQuery
[−]
[src]
pub trait GenericQuery<R> { fn query<T>(&mut self, t: &T) -> R
where
T: Term; }
A similar work around as GenericTransform
, but returning a query type, rather
than the same type. This is roughly equivalent to for<T> FnMut(&T) -> R
.
Required Methods
Implementors
impl<Q, U, D, R> GenericQuery<R> for Query<Q, U, D, R> where
Q: FnMut(&U) -> R,
D: FnMut() -> R,impl<Q, R, F> GenericQuery<R> for Everything<Q, R, F> where
Q: GenericQuery<R>,
F: FnMut(R, R) -> R,