Function transmute_neo
pub const unsafe fn transmute_neo<Src, Dst>(src: Src) -> Dst
New version of transmute, exposed under this name so it can be iterated upon
without risking breakage to uses of "real" transmute.
Uses a const-assert to check the sizes instead of typeck hacks,
but is semantially identical to transmute otherwise.
It will not be stabilized under this name.
Safety
Refer to transmute for safety requirements.
This function is semantically identical to transmute.
Examples
use transmute_neo;
assert_eq!;
#![feature(transmute_neo)]
use std::mem::transmute_neo;
unsafe { transmute_neo::<u32, u16>(123) };