Skip to main content

Transformation

Trait Transformation 

Source
pub trait Transformation<Input, Output>: Sync {
    // Required method
    fn transform(&self, data: &Input) -> Output;
}
Expand description

Generic transformation trait that is used both for scalars and packed fields

Required Methods§

Source

fn transform(&self, data: &Input) -> Output

Implementors§

Source§

impl<Inner, Input, Output> Transformation<Input, Output> for InputWrappingTransformation<Inner, Input, Output>
where Inner: Transformation<Input::Underlier, Output>, Input: WithUnderlier, Output: Sync,

Source§

impl<Inner, Input, Output> Transformation<Input, Output> for OutputWrappingTransformation<Inner, Input, Output>
where Inner: Transformation<Input, Output::Underlier>, Input: Sync, Output: WithUnderlier,

Source§

impl<UIn, UOut> Transformation<UIn, UOut> for BytewiseLookupTransformation<UIn, UOut>
where UIn: UnderlierType + Divisible<u8>, UOut: UnderlierType,