Home
last modified time | relevance | path

Searched refs:pin_init_from_closure (Results 1 – 8 of 8) sorted by relevance

/linux/rust/kernel/
H A Dinit.rs35 //! use pin_init::pin_init_from_closure;
97 //! pin_init::pin_init_from_closure(move |slot: *mut Self| {
132 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
161 pin_init_from_closure(|slot| { in pin_init()
H A Dtypes.rs377 pin_init::pin_init_from_closure::<_, ::core::convert::Infallible>(move |slot| {
398 pin_init::pin_init_from_closure::<_, E>(move |slot| init_func(Self::cast_into(slot)))
H A Dlib.rs
/linux/rust/pin-init/src/
H A Dalloc.rs15 init_from_closure, pin_init_from_closure, InPlaceWrite, Init, PinInit, ZeroableOption,
42 pin_init_from_closure(|slot| match init.__init(slot) { in pin_init()
H A Dlib.rs1145 pub const unsafe fn pin_init_from_closure<T: ?Sized, E>( in pin_init_from_closure() function
1180 unsafe { pin_init_from_closure(|ptr: *mut U| init.__init(ptr.cast::<T>())) } in cast_pin_init()
1359 pin_init_from_closure(move |slot: *mut T| -> Result<(), E> { in pin_init_scope()
/linux/rust/pin-init/
H A DREADME.md71 - using the unsafe function [`pin_init_from_closure()`] to manually create an initializer.
149 [`pin_init_from_closure()`] comes in. This `unsafe` function allows you to create a
161 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure};
199 pin_init_from_closure(move |slot: *mut Self| {
231 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 Dpthread_mutex.rs98 unsafe { pin_init_from_closure(init) } in new()
H A Dmutex.rs