Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/davidblewett/rure-python
/ index
Method
index
regex/src/re_bytes.rs:1013–1016 ·
view source on GitHub ↗
(&self, i: usize)
Source
from the content-addressed store, hash-verified
1011
type Output = [u8];
1012
1013
fn index(&self, i: usize) -> &[u8] {
1014
self.get(i).map(|m| m.as_bytes())
1015
.unwrap_or_else(|| panic!(
"no group at index '{}'"
, i))
1016
}
1017
}
1018
1019
/// Get a group by name.
Callers
nothing calls this directly
Calls
4
map
Method · 0.80
get
Method · 0.45
as_bytes
Method · 0.45
name
Method · 0.45
Tested by
no test coverage detected