Trait Transformer

Source
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.

Required Associated Types§

Source

type Error

Source

type Input: for<'de> Deserialize<'de>

Source

type Output

Source

type OutputIter: IntoIterator<Item = Result<Self::Output, Self::Error>>

Required Methods§

Source

fn transform(&mut self, input: Self::Input) -> Self::OutputIter

Implementors§