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

Call the transform function on any T.

Implementors