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

Method inplace_concat

crates/vm/src/builtins/list.rs:218–226  ·  view source on GitHub ↗
(
        zelf: &Py<Self>,
        other: &PyObject,
        vm: &VirtualMachine,
    )

Source from the content-addressed store, hash-verified

216 }
217
218 fn inplace_concat(
219 zelf: &Py<Self>,
220 other: &PyObject,
221 vm: &VirtualMachine,
222 ) -> PyResult<PyObjectRef> {
223 let mut seq = extract_cloned(other, Ok, vm)?;
224 zelf.borrow_vec_mut().append(&mut seq);
225 Ok(zelf.to_owned().into())
226 }
227
228 fn __iadd__(
229 zelf: PyRef<Self>,

Callers

nothing calls this directly

Calls 4

extract_clonedFunction · 0.85
borrow_vec_mutMethod · 0.80
appendMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected