On this page
Function std::intrinsics::mir::CastTransmute
pub fn CastTransmute<T, U>(operand: T) -> U
🔬This is a nightly-only experimental API. (
custom_mir
)
Emits a CastKind::Transmute
cast.
Needed to test the UB when sizeof(T) != sizeof(U)
, which can’t be generated via the normal mem::transmute
.
© 2010 The Rust Project Developers
Licensed under the Apache License, Version 2.0 or the MIT license, at your option.
https://doc.rust-lang.org/std/intrinsics/mir/fn.CastTransmute.html