pub trait IntoGainTransform<G: Gain> {
    // Required method
    fn with_transform<F: Fn(&Device, &Transducer, Drive) -> Drive>(
        self,
        f: F
    ) -> Transform<G, F>;
}

Required Methods§

source

fn with_transform<F: Fn(&Device, &Transducer, Drive) -> Drive>( self, f: F ) -> Transform<G, F>

transform gain data

§Arguments
  • f - transform function. The first argument is the device, the second is transducer, and the third is the original drive data.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl<K, F> IntoTransform<Group<K, F>> for Group<K, F>
where GainOp<Self>: Operation, K: Hash + Eq + Clone + 'static, F: Fn(&Device, &Transducer) -> Option<K> + 'static,