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

Method new

crates/vm/src/builtins/iter.rs:47–52  ·  view source on GitHub ↗
(obj: T, position: usize)

Source from the content-addressed store, hash-verified

45
46impl<T> PositionIterInternal<T> {
47 pub const fn new(obj: T, position: usize) -> Self {
48 Self {
49 status: IterStatus::Active(obj),
50 position,
51 }
52 }
53
54 pub fn set_state<F>(&mut self, state: PyObjectRef, f: F, vm: &VirtualMachine) -> PyResult<()>
55 where

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
try_sequenceMethod · 0.80

Tested by

no test coverage detected