Lines Matching defs:U
1143 /// - `*mut U` must be castable to `*mut T` and any value of type `T` written through such a
1144 /// pointer must result in a valid `U`.
1145 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> {
1148 let res = unsafe { pin_init_from_closure(|ptr: *mut U| init.__pinned_init(ptr.cast::<T>())) };
1162 /// - `*mut U` must be castable to `*mut T` and any value of type `T` written through such a
1163 /// pointer must result in a valid `U`.
1164 pub const unsafe fn cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> {
1167 let res = unsafe { init_from_closure(|ptr: *mut U| init.__init(ptr.cast::<T>())) };
1675 impl_fn_zeroable_option!(["Rust", "C"] { A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U });