[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <DF53YEJYNNBD.1W5RQEVY41RLP@kernel.org>
Date: Mon, 22 Dec 2025 23:44:45 +0100
From: "Danilo Krummrich" <dakr@...nel.org>
To: "Gladyshev Ilya" <foxido@...ido.dev>
Cc: "foxido @ foxido . dev-cc= Rafael J. Wysocki" <rafael@...nel.org>, "Len
Brown" <lenb@...nel.org>, "Miguel Ojeda" <ojeda@...nel.org>, "Boqun Feng"
<boqun.feng@...il.com>, "Gary Guo" <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>, "Benno Lossin"
<lossin@...nel.org>, "Andreas Hindborg" <a.hindborg@...nel.org>, "Alice
Ryhl" <aliceryhl@...gle.com>, "Trevor Gross" <tmgross@...ch.edu>, "Tamir
Duberstein" <tamird@...il.com>, "Armin Wolf" <W_Armin@....de>,
<platform-driver-x86@...r.kernel.org>, <linux-kernel@...r.kernel.org>,
<rust-for-linux@...r.kernel.org>, <linux-acpi@...r.kernel.org>
Subject: Re: [RFC PATCH 1/3] rust: implement wrapper for acpi_object
On Mon Dec 22, 2025 at 10:47 PM CET, Gladyshev Ilya wrote:
> I couldn't really decide between implementing all types or only the one
> needed... Probably, I should provide simple implementations for all the
> others, I will fix that.
If they are not needed by any of the drivers you're aiming at, you should
probably just drop them.
> Wouldn't it be confusing to overload Deref on a non "pointer-like" type
> just for an implicit cast?
What do you mean with overload Deref? What I mean is
impl Deref for AcpiBuffer {
type Target = [u8];
[...]
}
impl Deref for AcpiInteger {
type Target = u64;
[...]
}
impl Deref for AcpiString {
type Target = CStr;
[...]
}
etc.
Powered by blists - more mailing lists