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

Method slot_iter

crates/vm/src/stdlib/_io.rs:600–603  ·  view source on GitHub ↗
(zelf: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

598
599 impl Iterable for _IOBase {
600 fn slot_iter(zelf: PyObjectRef, vm: &VirtualMachine) -> PyResult {
601 check_closed(&zelf, vm)?;
602 Ok(zelf)
603 }
604
605 fn iter(_zelf: PyRef<Self>, _vm: &VirtualMachine) -> PyResult {
606 unreachable!("slot_iter is implemented")

Callers

nothing calls this directly

Calls 1

check_closedFunction · 0.85

Tested by

no test coverage detected