Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ lastgroup
Method
lastgroup
crates/vm/src/stdlib/_sre.rs:659–662 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
657
658
#[pygetset]
659
fn lastgroup(&self) -> Option<PyStrRef> {
660
let i = self.lastindex.to_usize()?;
661
self.pattern.indexgroup.get(i)?.clone()
662
}
663
664
#[pygetset]
665
fn re(&self) -> PyRef<Pattern> {
Callers
nothing calls this directly
Calls
3
to_usize
Method · 0.45
clone
Method · 0.45
get
Method · 0.45
Tested by
no test coverage detected