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

Method get_state

regex/src/dfa.rs:1656–1658  ·  view source on GitHub ↗
(&self, si: StatePtr)

Source from the content-addressed store, hash-verified

1654 }
1655
1656 fn get_state(&self, si: StatePtr) -> Option<&State> {
1657 self.states.get(si as usize / self.num_byte_classes)
1658 }
1659
1660 fn insert(&mut self, state: State, si: StatePtr) {
1661 self.map.insert(state.clone(), si);

Callers 1

stateMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected