Trait lrs::string::AsMutCStr

Objects that can be interpreted as mutable CStrs.

Syntax

trait AsMutCStr {
    /* Required methods */
    fn as_mut_cstr(&mut self) -> Result<&mut CStr, Errno>
}

Methods

ReceiverNameDescription
&mut selfas_mut_cstr

Borrows the object mutably as a CStr.

Remarks

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.