Trait FociSTMGenerator

Source
pub trait FociSTMGenerator<const N: usize>: Debug {
    type T: FociSTMIteratorGenerator<N>;

    // Required methods
    fn init(self) -> Result<Self::T, AUTDDriverError>;
    fn len(&self) -> usize;
}
Expand description

A trait to generate the FociSTMIteratorGenerator.

Required Associated Types§

Source

type T: FociSTMIteratorGenerator<N>

The type of the iterator generator.

Required Methods§

Source

fn init(self) -> Result<Self::T, AUTDDriverError>

Initializes and returns the iterator generator.

Source

fn len(&self) -> usize

Returns the length of the sequence of foci.

Implementations on Foreign Types§

Source§

impl<const N: usize, C> FociSTMGenerator<N> for Vec<C>
where C: Clone + Send + Sync + Debug, ControlPoints<N>: From<C>,

Source§

type T = Arc<Vec<C>>

Source§

fn init(self) -> Result<Self::T, AUTDDriverError>

Source§

fn len(&self) -> usize

Implementors§