(&self, position: isize, element: PyObjectRef)
| 193 | |
| 194 | #[pymethod] |
| 195 | pub(crate) fn insert(&self, position: isize, element: PyObjectRef) { |
| 196 | let mut elements = self.borrow_vec_mut(); |
| 197 | let position = elements.saturate_index(position); |
| 198 | elements.insert(position, element); |
| 199 | } |
| 200 | |
| 201 | fn concat(&self, other: &PyObject, vm: &VirtualMachine) -> PyResult<PyRef<Self>> { |
| 202 | let other = other.downcast_ref::<Self>().ok_or_else(|| { |
no test coverage detected