Lines Matching refs:pin_init
15 //! [`pin-init`]: https://rust.docs.kernel.org/pin_init/
22 //! combination with [`pin_init!`].
26 //! [`pin_init!`]: pin_init::pin_init
35 //! use pin_init::pin_init_from_closure;
56 //! let foo = pin_init!(Foo {
97 //! pin_init::pin_init_from_closure(move |slot: *mut Self| {
132 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
154 fn pin_init<E>(init: impl PinInit<T, E>, flags: Flags) -> error::Result<Self::PinnedSelf>
200 /// use pin_init::init_zeroed;
217 /// [`init!`]: pin_init::init
223 ::pin_init::init!(
232 /// If the initialization can complete without error (or [`Infallible`]), then use [`pin_init!`].
242 /// The syntax is identical to [`pin_init!`] with the following exception: you can append `? $type`
250 /// use pin_init::init_zeroed;
270 /// [`pin_init!`]: pin_init::pin_init
275 ::pin_init::pin_init!(