Lines Matching defs:U
1277 /// - `*mut U` must be castable to `*mut T` and any value of type `T` written through such a
1278 /// pointer must result in a valid `U`.
1280 pub const unsafe fn cast_pin_init<T, U, E>(init: impl PinInit<T, E>) -> impl PinInit<U, E> {
1283 let res = unsafe { pin_init_from_closure(|ptr: *mut U| init.__pinned_init(ptr.cast::<T>())) };
1293 /// - `*mut U` must be castable to `*mut T` and any value of type `T` written through such a
1294 /// pointer must result in a valid `U`.
1296 pub const unsafe fn cast_init<T, U, E>(init: impl Init<T, E>) -> impl Init<U, E> {
1299 let res = unsafe { init_from_closure(|ptr: *mut U| init.__init(ptr.cast::<T>())) };
1681 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 });