Lines Matching refs:pin_init
69 - directly creating an in-place constructor using the [`pin_init!`] macro,
84 ### Using the [`pin_init!`] macro
89 [`pin_init!`]. The syntax is almost the same as normal `struct` initializers. The difference is
93 use pin_init::{pin_data, pin_init, InPlaceInit};
102 let foo = pin_init!(Foo {
112 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);
115 For more information see the [`pin_init!`] macro.
123 let mtx: Result<Pin<Arc<CMutex<usize>>>, _> = Arc::pin_init(CMutex::new(42));
140 buffer: Box::init(pin_init::init_zeroed())?,
161 use pin_init::{pin_data, pinned_drop, PinInit, PinnedDrop, pin_init_from_closure};
238 [stack]: https://docs.rs/pin-init/latest/pin_init/macro.stack_pin_init.html
239 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
240 [`impl PinInit<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
241 [`impl Init<T, E>`]: https://docs.rs/pin-init/latest/pin_init/trait.Init.html