Gets the name of the PyType.
(&'a self, _py: Python<'a>)
| 47 | |
| 48 | /// Gets the name of the PyType. |
| 49 | pub fn name<'a>(&'a self, _py: Python<'a>) -> Cow<'a, str> { |
| 50 | unsafe { CStr::from_ptr((*self.as_type_ptr()).tp_name).to_string_lossy() } |
| 51 | } |
| 52 | |
| 53 | /// Return true if `self` is a subtype of `b`. |
| 54 | #[inline] |
nothing calls this directly
no test coverage detected