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

Method index

regex/src/re_unicode.rs:1017–1020  ·  view source on GitHub ↗
(&self, i: usize)

Source from the content-addressed store, hash-verified

1015 type Output = str;
1016
1017 fn index(&self, i: usize) -> &str {
1018 self.get(i).map(|m| m.as_str())
1019 .unwrap_or_else(|| panic!("no group at index '{}'", i))
1020 }
1021}
1022
1023/// Get a group by name.

Callers

nothing calls this directly

Calls 4

mapMethod · 0.80
getMethod · 0.45
as_strMethod · 0.45
nameMethod · 0.45

Tested by

no test coverage detected