Function deborrow::ref_to_mut
source · pub unsafe fn ref_to_mut<'a, T: ?Sized>(r: &'a T) -> &'a mut TExpand description
Transforms a reference into a mutable reference of the same lifetime
SAFETY:
Not safe unless you know EXACTLY what you’re doing. Can be used to share things between threads mutably.