1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
extern crate lcov_parser; use lcov_parser:: { LCOVParser, LCOVRecord }; fn main() { let res = LCOVParser::new("TNaa").parse(); if (res.is_err()) { println!("{}", res.err().unwrap()); } /* for record in records.iter() { match record { &LCOVRecord::SourceFile(ref name) => println!("start file: {}", name), &LCOVRecord::EndOfRecord => println!("end file"), _ => { continue; } } }*/ }