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

Method is_current

crates/vm/src/stdlib/itertools.rs:555–560  ·  view source on GitHub ↗
(&self, grouper: &Py<PyItertoolsGrouper>)

Source from the content-addressed store, hash-verified

553
554 impl GroupByState {
555 fn is_current(&self, grouper: &Py<PyItertoolsGrouper>) -> bool {
556 self.grouper
557 .as_ref()
558 .and_then(|g| g.upgrade())
559 .is_some_and(|current_grouper| grouper.is(&current_grouper))
560 }
561 }
562
563 #[pyattr]

Callers 1

nextMethod · 0.80

Calls 3

isMethod · 0.80
as_refMethod · 0.45
upgradeMethod · 0.45

Tested by

no test coverage detected