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

Method do_set_indexes

crates/vm/src/sliceable.rs:133–140  ·  view source on GitHub ↗
(&mut self, indexes: I, items: &[Self::Item])

Source from the content-addressed store, hash-verified

131 }
132
133 fn do_set_indexes<I>(&mut self, indexes: I, items: &[Self::Item])
134 where
135 I: Iterator<Item = usize>,
136 {
137 for (i, item) in indexes.zip(items) {
138 self.do_set(i, item.clone());
139 }
140 }
141
142 fn do_delete_indexes<I>(&mut self, range: Range<usize>, indexes: I)
143 where

Callers 2

setitem_by_sliceMethod · 0.80

Calls 2

do_setMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected