(o: *mut PyObject)
| 470 | #[cfg(not(Py_LIMITED_API))] |
| 471 | #[inline] |
| 472 | unsafe fn PyUnicode_IS_ASCII(o: *mut PyObject) -> bool { |
| 473 | let ascii_bit = 1 << 6; |
| 474 | let state = (*(o as *mut PyASCIIObject)).state; |
| 475 | (state & ascii_bit) != 0 |
| 476 | } |
| 477 | |
| 478 | #[cfg(not(Py_LIMITED_API))] |
| 479 | #[inline] |