MCPcopy Index your code
hub / github.com/RustPython/RustPython / subgroup

Method subgroup

crates/stdlib/src/re.rs:387–389  ·  view source on GitHub ↗
(&self, bounds: Range<usize>)

Source from the content-addressed store, hash-verified

385 }
386
387 fn subgroup(&self, bounds: Range<usize>) -> String {
388 self.haystack.as_str()[bounds].to_owned()
389 }
390
391 fn get_bounds(
392 &self,

Calls 2

to_ownedMethod · 0.45
as_strMethod · 0.45