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.