pub fn get_encoding_map(
input: &[u8],
) -> Result<HashMap<u32, Vec<u8>>, &'static str>Examples found in repository?
examples/dump.rs (line 17)
8fn main() {
9 let f = File::open(std::env::args().nth(1).unwrap()).unwrap();
10 let mut f = BufReader::new(f);
11 let mut contents = Vec::new();
12 f.read_to_end(&mut contents);
13
14 let lexed = parse(&contents).expect("failed to parse");
15 println!("{:?}", lexed);
16
17 println!("map {:?}", get_encoding_map(&contents));
18
19}