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

Function PyUnicode_GET_LENGTH

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

Source from the content-addressed store, hash-verified

525#[cfg(not(Py_LIMITED_API))]
526#[inline]
527pub unsafe fn PyUnicode_GET_LENGTH(o: *mut PyObject) -> Py_ssize_t {
528 debug_assert!(PyUnicode_Check(o) > 0);
529 #[cfg(not(Py_3_12))]
530 debug_assert!(PyUnicode_IS_READY(o));
531 (*(o as *mut PyASCIIObject)).length
532}
533
534#[cfg(not(any(Py_LIMITED_API, Py_3_12)))]
535#[inline]

Callers 1

data_implMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected