Skip to main content

Transform

Trait Transform 

Source
pub trait Transform: Send + Sync {
    type Input;
    type Output;

    // Required method
    fn transform(&self, input: Self::Input) -> Result<Self::Output>;
}
Expand description

Core trait for a data transformation step.

Required Associated Types§

Source

type Input

Input data type.

Source

type Output

Output data type.

Required Methods§

Source

fn transform(&self, input: Self::Input) -> Result<Self::Output>

Applies the transformation to input.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§