pub trait FociSTMGenerator<const N: usize>: Debug {
type T: FociSTMContextGenerator<N>;
// Required methods
fn init(self) -> Result<Self::T, AUTDDriverError>;
fn len(&self) -> usize;
}Expand description
A trait to generate the FociSTMContextGenerator.
Required Associated Types§
Sourcetype T: FociSTMContextGenerator<N>
type T: FociSTMContextGenerator<N>
The type of the context generator.
Required Methods§
Sourcefn init(self) -> Result<Self::T, AUTDDriverError>
fn init(self) -> Result<Self::T, AUTDDriverError>
Initializes and returns the context generator.