[PATCH 2 of 9] rust-cpython: add stub wrapper that'll prevent leaked data from being mutated

Raphaël Gomès raphael.gomes at octobus.net
Sat Oct 19 15:57:44 EDT 2019

On 10/19/19 12:07 PM, Yuya Nishihara wrote:

> PyLeakedRef<T> and PyLeakedRefMut<T> could be unified to PyLeakedRef<&T>
> and PyLeakedRef<&mut T> respectively, but I didn't do that since it seemed
> a bit weird that deref_mut() would return a mutable reference to an immutable
> reference.
It seems to be the approach that most other crates I've seen chose to 
take, sounds good to me.

More information about the Mercurial-devel mailing list