On Wed, 3 May 2023 14:10:16 +0000
Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
These methods can be used to copy the data in a temporary c string into
a separate allocation, so that it can be accessed later even if the
original is deallocated.
The API in this change mirrors the standard library API for the `&str`
and `String` types. The `ToOwned` trait is not implemented because it
assumes that allocations are infallible.
How about add a `TryToOwned` trait to the kernel crate and implement
that trait for `CStr` instead?