[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <7f2af153-0537-ab64-81c3-a15714d8afd7@proton.me>
Date: Wed, 22 Mar 2023 16:18:47 +0000
From: Benno Lossin <y86-dev@...tonmail.com>
To: Boqun Feng <boqun.feng@...il.com>,
Benno Lossin <y86-dev@...tonmail.com>
Cc: Miguel Ojeda <ojeda@...nel.org>,
Alex Gaynor <alex.gaynor@...il.com>,
Wedson Almeida Filho <wedsonaf@...il.com>,
Gary Guo <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>,
rust-for-linux@...r.kernel.org, linux-kernel@...r.kernel.org,
patches@...ts.linux.dev
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
Powered by blists - more mailing lists