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

Method __imul__

crates/vm/src/stdlib/_collections.rs:340–344  ·  view source on GitHub ↗
(zelf: PyRef<Self>, n: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

338 }
339
340 fn __imul__(zelf: PyRef<Self>, n: isize, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
341 let mul_deque = zelf._mul(n, vm)?;
342 *zelf.borrow_deque_mut() = mul_deque;
343 Ok(zelf)
344 }
345
346 fn __len__(&self) -> usize {
347 self.borrow_deque().len()

Callers

nothing calls this directly

Calls 2

borrow_deque_mutMethod · 0.80
_mulMethod · 0.45

Tested by

no test coverage detected