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

Function usize_to_u32

regex/src/dfa.rs:1843–1848  ·  view source on GitHub ↗
(n: usize)

Source from the content-addressed store, hash-verified

1841}
1842
1843fn usize_to_u32(n: usize) -> u32 {
1844 if (n as u64) > (::std::u32::MAX as u64) {
1845 panic!("BUG: {} is too big to fit into u32", n)
1846 }
1847 n as u32
1848}
1849
1850#[allow(dead_code)] // useful for debugging
1851fn show_state_ptr(si: StatePtr) -> String {

Callers 4

exec_byteMethod · 0.70
cached_state_keyMethod · 0.70
start_stateMethod · 0.70
addMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected