count_valid

Function count_valid 

Source
pub fn count_valid(
    codes: &[&str],
    alphabet: &Alphabet,
    expected_length: usize,
    damm_table: &DammTable,
) -> usize
Expand description

Count valid codes in a batch.

More efficient than validating all and counting, as it can short-circuit.