pyo3::sync

Function init_once_lock_py_attached

Source
fn init_once_lock_py_attached<'a, F, T>(
    lock: &'a OnceLock<T>,
    _py: Python<'_>,
    f: F,
) -> &'a T
where F: FnOnce() -> T,
Available on rustc_has_once_lock only.
⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here