Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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,
Callers
13
test_basics_subgroup_split__bad_arg_type
Method · 0.45
test_basics_subgroup_by_type__passthrough
Method · 0.45
test_basics_subgroup_by_type__no_match
Method · 0.45
test_basics_subgroup_by_type__match
Method · 0.45
test_basics_subgroup_by_predicate__passthrough
Method · 0.45
test_basics_subgroup_by_predicate__no_match
Method · 0.45
test_basics_subgroup_by_predicate__match
Method · 0.45
test_deep_subgroup
Method · 0.45
split_exception_group
Method · 0.45
test_drive_invalid_return_value
Method · 0.45
get_group
Method · 0.45
group
Method · 0.45
Calls
2
to_owned
Method · 0.45
as_str
Method · 0.45
Tested by
10
test_basics_subgroup_split__bad_arg_type
Method · 0.36
test_basics_subgroup_by_type__passthrough
Method · 0.36
test_basics_subgroup_by_type__no_match
Method · 0.36
test_basics_subgroup_by_type__match
Method · 0.36
test_basics_subgroup_by_predicate__passthrough
Method · 0.36
test_basics_subgroup_by_predicate__no_match
Method · 0.36
test_basics_subgroup_by_predicate__match
Method · 0.36
test_deep_subgroup
Method · 0.36
split_exception_group
Method · 0.36
test_drive_invalid_return_value
Method · 0.36