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

Method iter

src/objects/sequence.rs:228–231  ·  view source on GitHub ↗
(&self, py: Python<'p>)

Source from the content-addressed store, hash-verified

226
227 #[inline]
228 pub fn iter<'p>(&self, py: Python<'p>) -> PyResult<PyIterator<'p>> {
229 use crate::objectprotocol::ObjectProtocol;
230 self.as_object().iter(py)
231 }
232}
233
234/// Uses the sequence protocol and converts each individual element

Callers 4

extract_sequenceFunction · 0.45
test_seq_iterFunction · 0.45
test_seq_concatFunction · 0.45
test_seq_repeatFunction · 0.45

Calls 1

as_objectMethod · 0.45

Tested by 3

test_seq_iterFunction · 0.36
test_seq_concatFunction · 0.36
test_seq_repeatFunction · 0.36