Objects that can be interpreted as mutable CStrs.
trait AsMutCStr {
/* Required methods */
fn as_mut_cstr(&mut self) -> Result<&mut CStr, Errno>
}| Receiver | Name | Description |
|---|---|---|
&mut self | as_mut_cstr | Borrows the object mutably as a |
This operation can fail if the object has interior null bytes, e.g., "Hello World\0\0\0" will succeed but "Hello\0World\0" will fail.