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

Method execute_store_subscript

crates/vm/src/frame.rs:6380–6386  ·  view source on GitHub ↗
(&mut self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

6378 }
6379
6380 fn execute_store_subscript(&mut self, vm: &VirtualMachine) -> FrameResult {
6381 let idx = self.pop_value();
6382 let obj = self.pop_value();
6383 let value = self.pop_value();
6384 obj.set_item(&*idx, value, vm)?;
6385 Ok(None)
6386 }
6387
6388 fn execute_delete_subscript(&mut self, vm: &VirtualMachine) -> FrameResult {
6389 let idx = self.pop_value();

Callers 1

execute_instructionMethod · 0.80

Calls 2

pop_valueMethod · 0.80
set_itemMethod · 0.45

Tested by

no test coverage detected