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

Method next

crates/vm/src/builtins/tuple.rs:689–695  ·  view source on GitHub ↗
(zelf: &Py<Self>, _vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

687impl SelfIter for PyTupleIterator {}
688impl IterNext for PyTupleIterator {
689 fn next(zelf: &Py<Self>, _vm: &VirtualMachine) -> PyResult<PyIterReturn> {
690 zelf.internal.lock().next(|tuple, pos| {
691 Ok(PyIterReturn::from_result(
692 tuple.get(pos).cloned().ok_or(None),
693 ))
694 })
695 }
696}
697
698fn vectorcall_tuple(

Callers 1

fast_nextMethod · 0.45

Calls 2

lockMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected