autd3_driver::datagram

Trait GainSTMContextGenerator

Source
pub trait GainSTMContextGenerator {
    type Gain: GainContextGenerator;
    type Context: GainSTMContext<Context = <Self::Gain as GainContextGenerator>::Context>;

    // Required method
    fn generate(&mut self, device: &Device) -> Self::Context;
}
Expand description

A trait to generate the GainSTMContext.

Required Associated Types§

Source

type Gain: GainContextGenerator

The element type of the gain sequence.

Source

type Context: GainSTMContext<Context = <Self::Gain as GainContextGenerator>::Context>

GainSTMContext that generates the sequence of Gain.

Required Methods§

Source

fn generate(&mut self, device: &Device) -> Self::Context

generates the context.

Implementations on Foreign Types§

Source§

impl<G: GainContextGenerator> GainSTMContextGenerator for Vec<G>

Source§

type Gain = G

Source§

type Context = VecGainSTMContext<<G as GainContextGenerator>::Context>

Source§

fn generate(&mut self, device: &Device) -> Self::Context

Implementors§