Advertisement
Guest User

Untitled

a guest
Feb 25th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Rust 0.34 KB | None | 0 0
  1. let mut values: HashMap<&str, &str> = HashMap::new();
  2.  
  3. while rdr.read_byte_record(&mut record)? {
  4.   //println!("{:?}", str::from_utf8(&record[indexMatch]).unwrap());
  5.   let keyValue = str::from_utf8(&record[indexMatch]).unwrap();
  6.   let exportValue = str::from_utf8(&record[indexExport]).unwrap();
  7.   values.insert(keyValue, exportValue);
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement