pub trait Transformer {
type Error;
type Input;
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§
type Error
type Input
type Output
type OutputIter: IntoIterator<Item = Result<Self::Output, Self::Error>>
Required Methods§
fn transform(&mut self, input: Self::Input) -> Self::OutputIter
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".