Re: [PATCH] rust: transmute: Add methods for FromBytes trait
From: Miguel Ojeda
Date: Mon Mar 31 2025 - 06:50:39 EST
On Mon, Mar 31, 2025 at 1:40 AM Christian S. Lima
<christiansantoslima21@xxxxxxxxx> wrote:
>
> Methods receive a slice and perform size check to add a valid way to make
> conversion safe. An Option is used, in error case just return `None`.
>
> The conversion between slices `[T]` is separated from others, because I
> couldn't implement it in the same way as the other conversions.
>
> Link: https://github.com/Rust-for-Linux/linux/issues/1119
> Signed-off-by: Christian S. Lima <christiansantoslima21@xxxxxxxxx>
Hmm... We got two emails, both with the essentially the same content,
1 second apart, the second one without the v6 in the title.
The one I am replying to is what seems to be the duplicate one.
Cheers,
Miguel