Re: [PATCH v5 0/2] rust: transmute: add `as_bytes(_mut)` methods for `AsBytes` trait

From: Danilo Krummrich
Date: Tue Aug 19 2025 - 05:49:57 EST


On 8/1/25 3:24 PM, Alexandre Courbot wrote:
This is the sister patch of [1], providing an `as_bytes` method for
`AsBytes`, and an `as_bytes_mut` accessor for types also implementing
`FromBytes`.

It is going to be used in Nova, but should also be universally useful -
if anything, it felt a bit strange that `AsBytes` did not provide this
so far.

Miguel, any concerns taking this through the nova tree?