Function abi_stable::utils::transmute_mut_reference

source ·
pub unsafe fn transmute_mut_reference<'a, T, U>(ref_: &'a mut T) -> &'a mut U
Expand description

Transmute a mutable reference to another mutable reference, changing the referent’s type.

§Safety

This has the same safety concerns that std::mem::transmute has, including that T has to have an alignment and be compatible with U.