1 2 3 4 5 6 7 8 9
use std::intrinsics::transmute; use std::mem::transmute_copy; use crate::unsafe_std::ptrs::raw_ptr::RawPtr; pub unsafe trait IntoRawPtr { type Pointee: 'static; unsafe fn to_ptr(&self) -> RawPtr<Self::Pointee>; }