Lines Matching full:use
9 //! to its documentation to better understand how to use it. Additionally, there are many examples
21 //! [`Opaque<T>`] field by just delegating to the supplied closure. You can use these in
34 //! use kernel::types::Opaque;
35 //! use pin_init::pin_init_from_closure;
71 //! use kernel::{prelude::*, types::Opaque};
72 //! use core::{ptr::addr_of_mut, marker::PhantomPinned, pin::Pin};
129 use crate::{
133 use pin_init::{init_from_closure, pin_init_from_closure, Init, PinInit};
139 /// If a type already implicitly pins its pointee, `Pin<Self>` is unnecessary. In this case use
140 /// `Self`, otherwise just use `Pin<Self>`.
143 /// Use the given pin-initializer to pin-initialize a `T` inside of a new smart pointer of this
151 /// Use the given pin-initializer to pin-initialize a `T` inside of a new smart pointer of this
166 /// Use the given initializer to in-place initialize a `T`.
171 /// Use the given initializer to in-place initialize a `T`.
186 /// This macro defaults the error to [`Error`]. If you need [`Infallible`], then use
200 /// use kernel::error::Error;
201 /// use pin_init::init_zeroed;
241 /// If the initialization can complete without error (or [`Infallible`]), then use [`pin_init!`].
243 /// You can use the `?` operator or use `return Err(err)` inside the initializer to stop
252 /// after the `struct` initializer to specify the error type you want to use.
258 /// use kernel::error::Error;
259 /// use pin_init::init_zeroed;