core::intrinsics::mir

Function CastPtrToPtr

source
pub fn CastPtrToPtr<T, U>(operand: T) -> U
🔬This is a nightly-only experimental API. (custom_mir)
Expand description

Emits a CastKind::PtrToPtr cast.

This allows bypassing normal validation to generate strange casts.