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

Method _setitem_by_index

crates/vm/src/builtins/bytearray.rs:100–103  ·  view source on GitHub ↗
(&self, i: isize, value: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

98 }
99
100 fn _setitem_by_index(&self, i: isize, value: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
101 let value = value_from_object(vm, &value)?;
102 self.borrow_buf_mut().setitem_by_index(vm, i, value)
103 }
104
105 fn _setitem(
106 zelf: &Py<Self>,

Callers 1

_setitemMethod · 0.80

Calls 3

value_from_objectFunction · 0.85
setitem_by_indexMethod · 0.45
borrow_buf_mutMethod · 0.45

Tested by

no test coverage detected