Function std::cast::transmute_immut

pub unsafe fn transmute_immut<'a, T>(ptr: &'a mut T) -> &'a T

Coerce a mutable reference to be immutable.