Trait autd3_driver::datagram::IntoModulationTransform

source ·
pub trait IntoModulationTransform<M: Modulation> {
    // Required method
    fn with_transform<F: Fn(usize, EmitIntensity) -> EmitIntensity>(
        self,
        f: F
    ) -> Transform<M, F>;
}

Required Methods§

source

fn with_transform<F: Fn(usize, EmitIntensity) -> EmitIntensity>( self, f: F ) -> Transform<M, F>

transform modulation data

§Arguments
  • f - transform function. The first argument is index of the element, and the second argument is the value of the element of the original modulation data.

Object Safety§

This trait is not object safe.

Implementors§