MCPcopy Create free account
hub / github.com/davidblewett/rure-python / get_ptr

Method get_ptr

regex/src/dfa.rs:1652–1654  ·  view source on GitHub ↗
(&self, state: &State)

Source from the content-addressed store, hash-verified

1650 }
1651
1652 fn get_ptr(&self, state: &State) -> Option<StatePtr> {
1653 self.map.get(state).cloned()
1654 }
1655
1656 fn get_state(&self, si: StatePtr) -> Option<&State> {
1657 self.states.get(si as usize / self.num_byte_classes)

Callers 2

cached_stateMethod · 0.80
restore_stateMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected