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

Method append

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

Source from the content-addressed store, hash-verified

732
733 #[pymethod]
734 fn append(zelf: &Py<Self>, x: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
735 zelf.try_resizable(vm)?.push(x, vm)
736 }
737
738 #[pymethod]
739 fn clear(zelf: &Py<Self>, vm: &VirtualMachine) -> PyResult<()> {

Callers

nothing calls this directly

Calls 2

try_resizableMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected