(&self)
| 49 | |
| 50 | impl GlobalIdent { |
| 51 | fn as_ptr(&self) -> *const c_char { |
| 52 | match self { |
| 53 | Self::Explicit(cstr) => cstr.as_ptr(), |
| 54 | Self::Implicit => core::ptr::null(), |
| 55 | } |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | fn global_ident() -> &'static PyRwLock<Option<GlobalIdent>> { |