[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250326211006.696727-1-andrewjballance@gmail.com>
Date: Wed, 26 Mar 2025 16:10:06 -0500
From: Andrew Ballance <andrewjballance@...il.com>
To: remo@...nzli.dev
Cc: a.hindborg@...nel.org,
alex.gaynor@...il.com,
aliceryhl@...gle.com,
andriy.shevchenko@...ux.intel.com,
benno.lossin@...ton.me,
bjorn3_gh@...tonmail.com,
boqun.feng@...il.com,
dakr@...nel.org,
devicetree@...r.kernel.org,
dirk.behme@...bosch.com,
djrscally@...il.com,
gary@...yguo.net,
gregkh@...uxfoundation.org,
heikki.krogerus@...ux.intel.com,
linux-acpi@...r.kernel.org,
linux-kernel@...r.kernel.org,
ojeda@...nel.org,
rafael@...nel.org,
robh@...nel.org,
rust-for-linux@...r.kernel.org,
sakari.ailus@...ux.intel.com,
saravanak@...gle.com,
tmgross@...ch.edu,
andrewjballance@...il.com
Subject: Re: [PATCH 09/10] rust: property: Add PropertyGuard
On Wed, Mar 26, 2025 at 12:13 PM Remo Senekowitsch Wrote:
> +/// A helper for reading device properties.
> +///
> +/// Use [Self::required] if a missing property is considered a bug and
> +/// [Self::optional] otherwise.
> +///
> +/// For convenience, [Self::or] and [Self::or_default] are provided.
> +pub struct PropertyGuard<'fwnode, 'name, T> {
nit: when linking items in rustdoc comments you should suround them like [`this`]
Andrew
Powered by blists - more mailing lists