(zelf: PyRef<Self>, vm: &VirtualMachine)
| 97 | #[pymethod(name = "__copy__")] |
| 98 | #[pymethod] |
| 99 | fn copy(zelf: PyRef<Self>, vm: &VirtualMachine) -> PyResult<PyRef<Self>> { |
| 100 | Self { |
| 101 | deque: PyRwLock::new(zelf.borrow_deque().clone()), |
| 102 | maxlen: zelf.maxlen, |
| 103 | state: AtomicCell::new(zelf.state.load()), |
| 104 | } |
| 105 | .into_ref_with_type(vm, zelf.class().to_owned()) |
| 106 | } |
| 107 | |
| 108 | #[pymethod] |
| 109 | fn count(&self, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<usize> { |
nothing calls this directly
no test coverage detected