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

Method __mul__

crates/vm/src/stdlib/_collections.rs:331–338  ·  view source on GitHub ↗
(&self, n: isize, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

329 }
330
331 fn __mul__(&self, n: isize, vm: &VirtualMachine) -> PyResult<Self> {
332 let deque = self._mul(n, vm)?;
333 Ok(Self {
334 deque: PyRwLock::new(deque),
335 maxlen: self.maxlen,
336 state: AtomicCell::new(0),
337 })
338 }
339
340 fn __imul__(zelf: PyRef<Self>, n: isize, vm: &VirtualMachine) -> PyResult<PyRef<Self>> {
341 let mul_deque = zelf._mul(n, vm)?;

Callers

nothing calls this directly

Calls 2

newFunction · 0.85
_mulMethod · 0.45

Tested by

no test coverage detected