Trait GainSTMGenerator

Source
pub trait GainSTMGenerator: Debug {
    type T: GainSTMIteratorGenerator;

    // Required methods
    fn init(
        self,
        geometry: &Geometry,
        filter: Option<&HashMap<usize, BitVec>>,
        parallel: bool,
    ) -> Result<Self::T, GainError>;
    fn len(&self) -> usize;
}
Expand description

A trait to generate the GainSTMIteratorGenerator.

Required Associated Types§

Source

type T: GainSTMIteratorGenerator

The type of the iterator generator.

Required Methods§

Source

fn init( self, geometry: &Geometry, filter: Option<&HashMap<usize, BitVec>>, parallel: bool, ) -> Result<Self::T, GainError>

Initializes and returns the iterator generator.

Source

fn len(&self) -> usize

Returns the length of the sequence of gains.

Implementations on Foreign Types§

Source§

impl<G: Gain> GainSTMGenerator for Vec<G>

Source§

type T = Vec<<G as Gain>::G>

Source§

fn init( self, geometry: &Geometry, filter: Option<&HashMap<usize, BitVec>>, parallel: bool, ) -> Result<Self::T, GainError>

Source§

fn len(&self) -> usize

Implementors§