pub fn get_unicode_map(
    input: &[u8]
) -> Result<HashMap<u32, Vec<u8>>, &'static str>
Examples found in repository?
examples/dump.rs (line 18)
8
9
10
11
12
13
14
15
16
17
18
19
20
fn main() {

    let f = File::open(env::args().nth(1).unwrap()).unwrap();
    let mut f = BufReader::new(f);
    let mut contents = Vec::new();
    f.read_to_end(&mut contents);

    let lexed = parse(&contents).expect("failed to parse");
    println!("{:?}", lexed);

    println!("map {:?}", get_unicode_map(&contents));

}