Function std::intrinsics::mir::CastTransmute
source · pub fn CastTransmute<T, U>(operand: T) -> U
🔬This is a nightly-only experimental API. (
custom_mir
)Expand description
触发一个 CastKind::Transmute
cast。
sizeof(T) != sizeof(U)
时需要测试 UB,普通 mem::transmute
无法生成。