autd3_driver::datagram

Trait Gain

source
pub trait Gain: Debug {
    type G: GainContextGenerator;

    // Required method
    fn init_with_filter(
        self,
        geometry: &Geometry,
        filter: Option<HashMap<usize, BitVec<u32>>>,
    ) -> Result<Self::G, AUTDInternalError>;

    // Provided method
    fn init(self, geometry: &Geometry) -> Result<Self::G, AUTDInternalError>
       where Self: Sized { ... }
}

Required Associated Types§

Required Methods§

source

fn init_with_filter( self, geometry: &Geometry, filter: Option<HashMap<usize, BitVec<u32>>>, ) -> Result<Self::G, AUTDInternalError>

Provided Methods§

source

fn init(self, geometry: &Geometry) -> Result<Self::G, AUTDInternalError>
where Self: Sized,

Implementors§

source§

impl Gain for BoxedGain

source§

type G = BoxedGainContextGenerator