(&self)
| 385 | } |
| 386 | |
| 387 | fn names(&self) -> Option<Vec<String>> { |
| 388 | if !self.has_fields() { |
| 389 | return None; |
| 390 | } |
| 391 | let names = unsafe { |
| 392 | Borrowed::from_ptr(self.py(), PyDataType_NAMES(self.py(), self.as_dtype_ptr())) |
| 393 | }; |
| 394 | names.extract().ok() |
| 395 | } |
| 396 | |
| 397 | fn get_field(&self, name: &str) -> PyResult<(Bound<'py, PyArrayDescr>, usize)> { |
| 398 | if !self.has_fields() { |
nothing calls this directly
no test coverage detected