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<IF, OF, IEP, OEP, T> Transformation<IEP, OEP> for SubfieldTransformer<IF, OF, T>
where IF: Field, OF: Field, IEP: PackedExtension<IF>, OEP: PackedExtension<OF>, T: Transformation<PackedSubfield<IEP, IF>, PackedSubfield<OEP, OF>>,

Source§

impl<IF: BinaryField, OF: BinaryField, Data: AsRef<[OF]> + Sync> Transformation<IF, OF> for FieldLinearTransformation<OF, Data>

Source§

impl<OP: PackedBinaryField> Transformation<OP, OP> for IDTransformation