1
 2
 3
 4
 5
 6
 7
 8
 9
10
/// Generic Preproccessor which just enforces a simple adpater/transformer
/// interface on the implementor.
pub trait Preprocessor<'a> {
    type In;
    type Out;
    type Error;

    fn transform(&self, input: Self::In) -> Result<Self::Out, Self::Error>;
}