Re: [PATCH v2 27/28] rust: types: add `Either` type

From: Miguel Ojeda
Date: Mon Dec 05 2022 - 08:54:08 EST


On Sun, Dec 4, 2022 at 6:36 PM Wedson Almeida Filho <wedsonaf@xxxxxxxxx> wrote:
>
> It's also implemented in `std`, which the kernel doesn't include.
> (Which is actually good for us, since we can't really use it.)

We have it around in the kernel (the `std` one is a re-export), so one
"could" replace the `Either` with `Cow` in the case of the commit
message via ignoring the to-owned side of it (but I assume Josh didn't
mean to suggest that).

Anyway, it can be easily configured out from our `alloc`, so I will
send the patch.

Cheers,
Miguel