1pub fn cast_ptr<T: ?Sized, U>(p: &T) -> *const U { 2 <*const T>::cast(p) 3} 4 5pub fn cast_ptr_mut<T: ?Sized, U>(p: &mut T) -> *mut U { 6 <*mut T>::cast(p) 7}