(&self, py: Python)
| 278 | /// This is equivalent to the Python expression: 'len(self)' |
| 279 | #[inline] |
| 280 | fn len(&self, py: Python) -> PyResult<usize> { |
| 281 | let v = unsafe { ffi::PyObject_Size(self.as_ptr()) }; |
| 282 | if v == -1 { |
| 283 | Err(PyErr::fetch(py)) |
| 284 | } else { |
| 285 | Ok(v as usize) |
| 286 | } |
| 287 | } |
| 288 | |
| 289 | /// This is equivalent to the Python expression: 'self[key]' |
| 290 | #[inline] |
nothing calls this directly
no test coverage detected