Function cast_pin_init

Source
pub const unsafe fn cast_pin_init<T, U, E>(
    init: impl PinInit<T, E>,
) -> impl PinInit<U, E>
Expand description

Changes the to be initialized type.

ยงSafety

  • *mut U must be castable to *mut T and any value of type T written through such a pointer must result in a valid U.