Searched refs:Foo (Results 1 – 2 of 2) sorted by relevance
197 struct Foo { in stack_init_reuse() struct201 let mut slot: Pin<&mut StackInit<Foo>> = pin!(StackInit::uninit()); in stack_init_reuse()202 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()203 slot.as_mut().init(crate::init!(Foo { in stack_init_reuse()209 let value: Result<Pin<&mut Foo>, core::convert::Infallible> = in stack_init_reuse()210 slot.as_mut().init(crate::init!(Foo { in stack_init_reuse()
84 struct Foo {90 let foo = pin_init!(Foo {96 `foo` now is of the type [`impl PinInit<Foo>`]. We can now use any smart pointer that we like97 (or just the stack) to actually initialize a `Foo`:100 let foo: Result<Pin<Box<Foo>>, AllocError> = Box::pin_init(foo);227 [`impl PinInit<Foo>`]: https://docs.rs/pin-init/latest/pin_init/trait.PinInit.html
Completed in 5 milliseconds