MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / PyUnicode_IS_READY

Function PyUnicode_IS_READY

python3-sys/src/unicodeobject.rs:536–540  ·  view source on GitHub ↗
(o: *mut PyObject)

Source from the content-addressed store, hash-verified

534#[cfg(not(any(Py_LIMITED_API, Py_3_12)))]
535#[inline]
536unsafe fn PyUnicode_IS_READY(o: *mut PyObject) -> bool {
537 let ready_bit = 1 << 7;
538 let state = (*(o as *mut PyASCIIObject)).state;
539 (state & ready_bit) != 0
540}
541
542#[cfg(not(Py_LIMITED_API))]
543#[inline]

Callers 1

PyUnicode_READYFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected