Trait scrapmetal::GenericTransform
[−]
[src]
pub trait GenericTransform { fn transform<T>(&mut self, t: T) -> T
where
T: Term; }
Work around Rust's lack of higher-rank type polymorphism with a trait that
has a generic fn transform<T>
method. Essentially, we'd really prefer
taking arguments of type F: for<T> FnMut(T) -> T
rather than F: GenericTransform
but Rust doesn't support them yet (ever?).
Required Methods
Implementors
impl<F, U> GenericTransform for Transformation<F, U> where
F: FnMut(U) -> U,impl<F> GenericTransform for Everywhere<F> where
F: GenericTransform,impl<F, P> GenericTransform for EverywhereBut<F, P> where
F: GenericTransform,
P: GenericQuery<bool>,