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.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§