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

Method __iadd__

crates/vm/src/builtins/list.rs:228–236  ·  view source on GitHub ↗
(
        zelf: PyRef<Self>,
        other: PyObjectRef,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

226 }
227
228 fn __iadd__(
229 zelf: PyRef<Self>,
230 other: PyObjectRef,
231 vm: &VirtualMachine,
232 ) -> PyResult<PyRef<Self>> {
233 let mut seq = extract_cloned(&other, Ok, vm)?;
234 zelf.borrow_vec_mut().append(&mut seq);
235 Ok(zelf)
236 }
237
238 #[pymethod]
239 fn clear(&self) {

Callers

nothing calls this directly

Calls 3

extract_clonedFunction · 0.85
borrow_vec_mutMethod · 0.80
appendMethod · 0.45

Tested by

no test coverage detected