Skip to main content

Transform

Trait Transform 

Source
pub trait Transform: Send + Sync {
    // Required method
    fn apply(&self, sample: Sample) -> Sample;
}
Expand description

A transform applied to each sample before batching.

Required Methods§

Source

fn apply(&self, sample: Sample) -> Sample

Apply the transform to a sample, returning the modified sample.

Implementors§