Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davidblewett/rure-python
/ usize_to_u32
Function
usize_to_u32
regex/src/backtrack.rs:298–303 ·
view source on GitHub ↗
(n: usize)
Source
from the content-addressed store, hash-verified
296
}
297
298
fn usize_to_u32(n: usize) -> u32 {
299
if (n as u64) > (::std::u32::MAX as u64) {
300
panic!(
"BUG: {} is too big to fit into u32"
, n)
301
}
302
n as u32
303
}
Callers
1
has_visited
Method · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected