MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / __iter__

Method __iter__

flow-message/src/cross/python/iterator.rs:28–30  ·  view source on GitHub ↗
(slf: PyRefMut<Self>)

Source from the content-addressed store, hash-verified

26#[pyproto]
27impl PyIterProtocol for PyObjectIterator {
28 fn __iter__(slf: PyRefMut<Self>) -> PyResult<Py<PyObjectIterator>> {
29 Ok(slf.into())
30 }
31 fn __next__(mut slf: PyRefMut<Self>) -> PyResult<Option<PyObject>> {
32 Ok(slf.iterator.next())
33 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected