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

Method iter

crates/vm/src/protocol/iter.rs:54–60  ·  view source on GitHub ↗
(
        &'b self,
        vm: &'a VirtualMachine,
    )

Source from the content-addressed store, hash-verified

52 }
53
54 pub fn iter<'a, 'b, U>(
55 &'b self,
56 vm: &'a VirtualMachine,
57 ) -> PyResult<PyIterIter<'a, U, &'b PyObject>> {
58 let length_hint = vm.length_hint_opt(self.as_ref().to_owned())?;
59 Ok(PyIterIter::new(vm, self.0.borrow(), length_hint))
60 }
61
62 pub fn iter_without_hint<'a, 'b, U>(
63 &'b self,

Callers 15

validateMethod · 0.45
is_contiguousMethod · 0.45
fast_positionMethod · 0.45
positionMethod · 0.45
is_zero_in_shapeMethod · 0.45
tupleMethod · 0.45
extractMethod · 0.45
with_vmFunction · 0.45
park_detached_threadsMethod · 0.45
start_the_worldMethod · 0.45

Calls 5

newFunction · 0.85
length_hint_optMethod · 0.80
to_ownedMethod · 0.45
as_refMethod · 0.45
borrowMethod · 0.45

Tested by

no test coverage detected