fn restore_state(&mut self, state: State) -> StatePtr {
        let key = StateKey {
            insts: state.insts.clone(),
            flags: state.flags,
        };
        if let Some(&si) = self.cache.compiled.get(&key) {
            return si;
        }
        let si = usize_to_u32(self.cache.states.len());
        self.cache.states.push(state);
        self.cache.compiled.insert(key, si);
        si
    }
/// Restores the given state back into the cache, and returns a pointer
/// to it.
Restores the given state back into the cache, and returns a pointer
to it.
Restores the given state back into the cache and returns a pointer to it .
fn restore_state(&mut self, state: State) -> StatePtr {
        let key = StateKey {
            insts: state.insts.clone(),
            flags: state.flags,
        };
        if let Some(&si) = self.cache.compiled.get(&key) {
            return si;
        }
        let si = usize_to_u32(self.cache.states.len());
        self.cache.states.push(state);
        self.cache.compiled.insert(key, si);
        si
    }
fn restore_state ( & mut self , state : State ) -> StatePtr { let key = StateKey { insts : state . insts . clone ( ) , flags : state . flags , } ; if let Some ( & si ) = self . cache . compiled . get ( & key ) { return si ; } let si = usize_to_u32 ( self . cache . states . len ( ) ) ; self . cache . states . push ( state ) ; self . cache . compiled . insert ( key , si ) ; si }
Restores the given state back into the cache, and returns a pointer
to it.
Restores the given state back into the cache and returns a pointer to it .
&mut self
state
State
&mut self
state
State