Tries to create a mutable CStr without copying and copies if that's not possible.
fn to_or_as_mut_cstr(&'a mut self, buf: &'a mut [u8]) -> Result<&'a mut CStr, Errno>
| Name | Description |
|---|---|
| buf | The buffer in which the |
Returns the borrowed or created CStr.
The default implementation simply calls to_cstr.