File: opt.rs

package info (click to toggle)
rust-radix-trie 0.1.5-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 224 kB
  • sloc: makefile: 2
file content (17 lines) | stat: -rw-r--r-- 362 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
extern crate radix_trie;

use radix_trie::*;

fn main() {
    let mut trie = Trie::new();
    let mut key = vec![];
    for i in 0..10_000 {
        key.push(0);
        trie.insert(key.clone(), i);
        key.pop();
        key.push(1);
        trie.insert(key.clone(), i);
    }
    //let res = trie.remove(&blow_stack);
    //println!("{}", res.unwrap());
}