Skip to main content

ApplyGate

Trait ApplyGate 

Source
pub trait ApplyGate: Gate {
    // Required method
    fn classify(
        &self,
        matrix: &EventMatrix,
        gate_map: &GateRegistry,
    ) -> Result<BitVec<u64>, FlowGateError>;
}

Required Methods§

Source

fn classify( &self, matrix: &EventMatrix, gate_map: &GateRegistry, ) -> Result<BitVec<u64>, FlowGateError>

Classify events in the matrix against this gate. Returns a BitVec where each bit indicates whether the corresponding event is inside the gate.

Implementors§