Lines Matching refs:pin_init
57 - directly creating an in-place constructor using the [`pin_init!`] macro,
72 ### Using the [`pin_init!`] macro
77 [`pin_init!`]. The syntax is almost the same as normal `struct` initializers. The difference is
81 use pin_init::{pin_data, pin_init, InPlaceInit};
90 let foo = pin_init!(Foo {
100 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);
103 For more information see the [`pin_init!`] macro.
111 let mtx: Result<Pin<Arc<CMutex<usize>>>, _> = Arc::pin_init(CMutex::new(42));
128 buffer: Box::init(pin_init::init_zeroed())?,
149 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure};
226 [stack]: https://docs.rs/pin-init/latest/pin_init/macro.stack_pin_init.html
227 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
228 [`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
229 [`impl Init<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.Init.html