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

Method next_unchecked

regex/src/dfa.rs:1721–1725  ·  view source on GitHub ↗

Like `next`, but uses unchecked access and is therefore unsafe.

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

Source from the content-addressed store, hash-verified

1719
1720 /// Like `next`, but uses unchecked access and is therefore unsafe.
1721 unsafe fn next_unchecked(&self, si: StatePtr, cls: usize) -> StatePtr {
1722 debug_assert!((si as usize) < self.table.len());
1723 debug_assert!(cls < self.num_byte_classes);
1724 *self.table.get_unchecked(si as usize + cls)
1725 }
1726}
1727
1728impl StateFlags {

Callers 1

next_siMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected