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

Method iter

crates/vm/src/builtins/str.rs:1573–1578  ·  view source on GitHub ↗
(zelf: PyRef<Self>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1571
1572impl Iterable for PyStr {
1573 fn iter(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult {
1574 Ok(PyStrIterator {
1575 internal: PyMutex::new((PositionIterInternal::new(zelf, 0), 0)),
1576 }
1577 .into_pyobject(vm))
1578 }
1579}
1580
1581impl AsMapping for PyStr {

Callers 2

joinMethod · 0.45
do_stepped_sliceMethod · 0.45

Calls 2

newFunction · 0.85
into_pyobjectMethod · 0.45

Tested by

no test coverage detected