Skip to main content

path_c_string

Function path_c_string 

Source
pub fn path_c_string(path: &Path) -> Result<CString, PathCStringError>
Expand description

ยงErrors

Returns PathCStringError::NotUtf8 when path is not valid UTF-8, or PathCStringError::ContainsNulByte when it contains a NUL byte.