Re: [PATCH v2] rust: types: Add examples for the `Either` type
From: Miguel Ojeda
Date: Tue Oct 01 2024 - 18:58:17 EST
On Wed, Sep 18, 2024 at 11:21 PM Nell Shamrell-Harrington
<nells@xxxxxxxxxxxxxxxxxxx> wrote:
>
> Add examples for the `Either` type
>
> Suggested-by: Miguel Ojeda <ojeda@xxxxxxxxxx>
> Signed-off-by: Nell Shamrell-Harrington <nells@xxxxxxxxxxxxxxxxxxx>
> Tested-by: Dirk Behme <dirk.behme@xxxxxxxxxxxx>
Applied to `rust-next` -- thanks everyone!
[ Reworded slightly. - Miguel ]
It could be nice to have `assert_eq!`s too, like in some standard
library examples and/or a "real-life" example like Wedson's (I created
a "good first issue" for that:
https://github.com/Rust-for-Linux/linux/issues/1122), but we can add
that later.
Cheers,
Miguel