Searched refs:pin_init_from_closure (Results 1 – 8 of 8) sorted by relevance
/linux/rust/kernel/ |
H A D | init.rs | 133 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit}; 161 pin_init_from_closure(|slot| init.__pinned_init(slot).map_err(|e| Error::from(e))) in pin_init()
|
H A D | types.rs | 369 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| { in ffi_init() 390 pin_init::pin_init_from_closure::<_, E>(move |slot| init_func(Self::cast_into(slot))) in try_ffi_init()
|
H A D | lib.rs | 173 unsafe { pin_init::pin_init_from_closure(initer) } in init()
|
/linux/rust/pin-init/src/ |
H A D | alloc.rs | 15 init_from_closure, pin_init_from_closure, InPlaceWrite, Init, PinInit, ZeroableOption, 41 pin_init_from_closure(|slot| match init.__pinned_init(slot) { in pin_init()
|
H A D | lib.rs | 842 @construct_closure(pin_init_from_closure), 1246 pub const unsafe fn pin_init_from_closure<T: ?Sized, E>( in pin_init_from_closure() function 1281 let res = unsafe { pin_init_from_closure(|ptr: *mut U| init.__pinned_init(ptr.cast::<T>())) }; in cast_pin_init() 1390 unsafe { pin_init_from_closure(init) }
|
/linux/rust/pin-init/ |
H A D | README.md | 59 - using the unsafe function [`pin_init_from_closure()`] to manually create an initializer. 137 [`pin_init_from_closure()`] comes in. This `unsafe` function allows you to create a 149 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure}; 188 pin_init_from_closure(move |slot: *mut Self| { 220 For more information on how to use [`pin_init_from_closure()`], take a look at the uses inside
|
/linux/rust/pin-init/examples/ |
H A D | pthread_mutex.rs | 99 unsafe { pin_init_from_closure(init) } in new()
|
H A D | mutex.rs | 84 pin_init_from_closure(|slot: *mut UnsafeCell<T>| { in new()
|