Searched refs:init_from_closure (Results 1 – 4 of 4) sorted by relevance
| /linux/rust/kernel/ |
| H A D | init.rs | 132 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit}; 181 init_from_closure(|slot| pin_init::raw_try_init(slot, init).map_err(|e| Error::from(e)))
|
| /linux/rust/pin-init/src/ |
| H A D | alloc.rs | 15 init_from_closure, pin_init_from_closure, InPlaceWrite, Init, PinInit, ZeroableOption, 60 init_from_closure(|slot| match init.__init(slot) { in init()
|
| H A D | lib.rs | 1164 pub const unsafe fn init_from_closure<T: ?Sized, E>( in init_from_closure() function 1193 unsafe { init_from_closure(|ptr: *mut U| init.__init(ptr.cast::<T>())) } in cast_init() 1202 unsafe { init_from_closure(|_| Ok(())) } in uninit() 1403 init_from_closure(move |slot: *mut T| -> Result<(), E> { in init_scope() 1584 init_from_closure(|slot: *mut T| { in init_zeroed()
|
| /linux/rust/pin-init/internal/src/ |
| H A D | init.rs | 106 let (has_data_trait, get_data, init_from_closure) = if pinned { 116 format_ident!("init_from_closure"), 172 unsafe { ::pin_init::#init_from_closure::<_, #error>(init) }
|