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

Method insert

crates/stdlib/src/array.rs:911–914  ·  view source on GitHub ↗
(zelf: &Py<Self>, i: isize, x: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

909
910 #[pymethod]
911 fn insert(zelf: &Py<Self>, i: isize, x: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
912 let mut w = zelf.try_resizable(vm)?;
913 w.insert(i, x, vm)
914 }
915
916 #[pymethod]
917 fn pop(zelf: &Py<Self>, i: OptionalArg<isize>, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 1

try_resizableMethod · 0.80

Tested by

no test coverage detected