We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
In the current API, CString::new takes a *const i8, but it has a method as_mut_ptr which returns a *mut i8.
CString::new
*const i8
as_mut_ptr
*mut i8
The as_mut_ptr method seems to violate the invariant that the new method is trying to impose.
new
Perhaps we need CString and MutCString, as well as MutCString::to_c_string?
CString
MutCString
MutCString::to_c_string