Messages in this thread | | | Date | Wed, 22 Mar 2023 16:18:47 +0000 | From | Benno Lossin <> | Subject | Re: [PATCH v2 4/5] rust: init: add common init-helper functions for `Opaque` |
| |
On 21.03.23 21:06, Boqun Feng wrote: > I wonder whether it's better to make these as methods of Opaque<T>, i.e. > > impl<T> Opaque<T> { > pub unsafe fn ffi_init(...) -> impl PinInit<Self> { > ... > } > ... > } > > then it's a little more obvious to users that these methods are for > Opaque type pin init. > > Thoughts?
That would work, will add it to v3.
Cheers, Benno
| |