MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyListIterator

Class PyListIterator

src/objects/list.rs:106–110  ·  view source on GitHub ↗

Used by `PyList::iter()`.

Source from the content-addressed store, hash-verified

104
105/// Used by `PyList::iter()`.
106pub struct PyListIterator<'a, 'p> {
107 py: Python<'p>,
108 list: &'a PyList,
109 index: usize,
110}
111
112impl<'a, 'p> Iterator for PyListIterator<'a, 'p> {
113 type Item = PyObject;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected