(&self, obj: PyObjectRef, vm: &VirtualMachine)
| 107 | |
| 108 | #[pymethod] |
| 109 | fn count(&self, obj: PyObjectRef, vm: &VirtualMachine) -> PyResult<usize> { |
| 110 | let start_state = self.state.load(); |
| 111 | let count = self.mut_count(vm, &obj)?; |
| 112 | |
| 113 | if start_state != self.state.load() { |
| 114 | return Err(vm.new_runtime_error("deque mutated during iteration")); |
| 115 | } |
| 116 | Ok(count) |
| 117 | } |
| 118 | |
| 119 | #[pymethod] |
| 120 | fn extend(&self, iter: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> { |
no test coverage detected