rust/hg-pyo3/src/convert_cpython.rs
changeset 52532 3ffcdbf0b432
parent 52531 4c9e31984b3a
child 52533 6b694bdf752a
equal deleted inserted replaced
52531:4c9e31984b3a 52532:3ffcdbf0b432
   234 /// Mutable variant of [`py_leaked_borrow`]
   234 /// Mutable variant of [`py_leaked_borrow`]
   235 ///
   235 ///
   236 /// # Safety
   236 /// # Safety
   237 ///
   237 ///
   238 /// See [`py_leaked_borrow`]
   238 /// See [`py_leaked_borrow`]
   239 #[allow(dead_code)]
       
   240 pub(crate) unsafe fn py_leaked_borrow_mut<'a, 'py: 'a, T>(
   239 pub(crate) unsafe fn py_leaked_borrow_mut<'a, 'py: 'a, T>(
   241     py: &impl WithGIL<'py>,
   240     py: &impl WithGIL<'py>,
   242     leaked: &'a mut cpython::UnsafePyLeaked<T>,
   241     leaked: &'a mut cpython::UnsafePyLeaked<T>,
   243 ) -> PyResult<cpython::PyLeakedRefMut<'a, T>> {
   242 ) -> PyResult<cpython::PyLeakedRefMut<'a, T>> {
   244     let py = cpython_handle(py);
   243     let py = cpython_handle(py);