Trait scrapmetal::GenericMutate
[−]
[src]
pub trait GenericMutate<R> { fn mutate<T>(&mut self, t: &mut T) -> R
where
T: Term; }
A similar work around as GenericTransform
, but mutating in place and
optionally returning some query type, rather than taking self
and
returning the same Self
type.
This is roughly equivalent to for<T> FnMut(&mut T) -> R
.
Required Methods
Implementors
impl<M, U, D, R> GenericMutate<R> for Mutation<M, U, D, R> where
M: FnMut(&mut U) -> R,
D: FnMut() -> R,impl<M, R, F> GenericMutate<R> for MutateEverything<M, R, F> where
M: GenericMutate<R>,
F: FnMut(R, R) -> R,