Home
last modified time | relevance | path

Searched refs:init_from_closure (Results 1 – 4 of 4) sorted by relevance

/linux/rust/pin-init/src/
H A Dlib.rs1134 pub const unsafe fn init_from_closure<T: ?Sized, E>( in init_from_closure() function
1165 let res = unsafe { init_from_closure(|ptr: *mut U| init.__init(ptr.cast::<T>())) }; in cast_init()
1178 unsafe { init_from_closure(|_| Ok(())) } in uninit()
1216 unsafe { init_from_closure(init) }
1342 init_from_closure(move |slot: *mut T| -> Result<(), E> { in init_scope()
1550 init_from_closure(|slot: *mut T| { in init_zeroed()
H A Dalloc.rs15 init_from_closure, pin_init_from_closure, InPlaceWrite, Init, PinInit, ZeroableOption,
58 init_from_closure(|slot| match init.__init(slot) { in init()
/linux/rust/kernel/
H A Dinit.rs132 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
177 init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in init()
/linux/rust/pin-init/internal/src/
H A Dinit.rs106 let (has_data_trait, data_trait, get_data, init_from_closure) = if pinned {
175 let init = unsafe { ::pin_init::#init_from_closure::<_, #error>(init) };