[][src]Function abi_stable::utils::transmute_mut_reference

pub unsafe fn transmute_mut_reference<T, U>(ref_: &mut T) -> &mut U

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.