Re: [PATCH] rust: Improve CStr UTF-8 conversion methods
From: Miguel Ojeda
Date: Fri Aug 22 2025 - 17:33:07 EST
On Fri, Aug 22, 2025 at 10:57 PM Sami Daniel
<samidanielpersonal@xxxxxxxxx> wrote:
>
> + pub fn as_str(&self) -> Result<&str, core::str::Utf8Error> {
Should we use the `as_` prefix?
The standard library calls this `to_str`, likely because it isn't free
and it doesn't decrease abstraction.
Cheers,
Miguel