FociSTMGenerator

Trait FociSTMGenerator 

Source
pub trait FociSTMGenerator<const N: usize> {
    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 M: usize, const N: usize, C> FociSTMGenerator<N> for [C; M]
where C: Clone + Send + Sync, ControlPoints<N>: From<C>,

Source§

type T = VecFociSTMIterator<N, C, [C; M]>

Source§

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

Source§

fn len(&self) -> usize

Source§

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

Source§

type T = VecFociSTMIterator<N, C, Vec<C>>

Source§

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

Source§

fn len(&self) -> usize

Implementors§