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

Method set_next

regex/src/dfa.rs:1706–1708  ·  view source on GitHub ↗

Sets the transition from (si, cls) to next.

(&mut self, si: StatePtr, cls: usize, next: StatePtr)

Source from the content-addressed store, hash-verified

1704
1705 /// Sets the transition from (si, cls) to next.
1706 fn set_next(&mut self, si: StatePtr, cls: usize, next: StatePtr) {
1707 self.table[si as usize + cls] = next;
1708 }
1709
1710 /// Returns the transition corresponding to (si, cls).
1711 fn next(&self, si: StatePtr, cls: usize) -> StatePtr {

Callers 2

exec_byteMethod · 0.80
add_stateMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected