pub trait Transformer {
type Error;
type Input: for<'de> Deserialize<'de>;
type Output;
type OutputIter: IntoIterator<Item = Result<Self::Output, Self::Error>>;
// Required method
fn transform(&mut self, input: Self::Input) -> Self::OutputIter;
}Expand description
Transformers are capable of transforming any Input into an iterator of
Result<Self::Output, Self::Error>s.