in src/main.rs [454:472]
fn parse(path: &Path) -> Result<(), Box<dyn error::Error>> {
let (header, recs) = read_file(path)?;
println!("{:?}", header);
use std::collections::HashMap;
let mut map: HashMap<u16, u32> = HashMap::new();
for rec in recs {
let count = map.entry(rec.typ as u16).or_insert(0);
*count += 1;
}
for (k, c) in &map {
println!("Records 0x{:x} {}", k, c);
}
Ok(())
}