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

Method get_group

crates/stdlib/src/re.rs:410–413  ·  view source on GitHub ↗
(&self, id: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

408 }
409
410 fn get_group(&self, id: PyObjectRef, vm: &VirtualMachine) -> PyResult<Option<String>> {
411 let bounds = self.get_bounds(id, vm)?;
412 Ok(bounds.map(|b| self.subgroup(b)))
413 }
414
415 #[pymethod]
416 fn group(&self, groups: PosArgs, vm: &VirtualMachine) -> PyResult {

Callers 1

groupMethod · 0.80

Calls 3

get_boundsMethod · 0.80
mapMethod · 0.45
subgroupMethod · 0.45

Tested by

no test coverage detected