pub fn new(prog: &Program) -> Self {
        Cache {
            inner: CacheInner {
                compiled: HashMap::new(),
                states: vec![State::invalid(), State::invalid()],
                start_states: vec![STATE_UNKNOWN; 256],
                stack: vec![],
                flush_count: 0,
            },
            qcur: SparseSet::new(prog.insts.len()),
            qnext: SparseSet::new(prog.insts.len()),
        }
    }
/// Create new empty cache for the DFA engine.
Create new empty cache for the DFA engine.
Create new empty cache for the DFA engine .
pub fn new(prog: &Program) -> Self {
        Cache {
            inner: CacheInner {
                compiled: HashMap::new(),
                states: vec![State::invalid(), State::invalid()],
                start_states: vec![STATE_UNKNOWN; 256],
                stack: vec![],
                flush_count: 0,
            },
            qcur: SparseSet::new(prog.insts.len()),
            qnext: SparseSet::new(prog.insts.len()),
        }
    }
pub fn new ( prog : & Program ) -> Self { Cache { inner : CacheInner { compiled : HashMap :: new ( ) , states : vec ! [ State invalid ( ) State invalid ( ) ] , start_states : vec ! [ STATE_UNKNOWN 256 ] , stack : vec ! [ ] , flush_count : 0 , } , qcur : SparseSet :: new ( prog . insts . len ( ) ) , qnext : SparseSet :: new ( prog . insts . len ( ) ) , } }
Create new empty cache for the DFA engine.
Create new empty cache for the DFA engine .
prog
&Program
prog
&Program