pub const unsafe fn cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E>Expand description
Changes the to be initialized type.
ยงSafety
- *mut Umust be castable to- *mut Tand any value of type- Twritten through such a pointer must result in a valid- U.