pub fn as_c_str<'a>(value: &'a String) -> &'a CStr
Convert null-terminated String to CStr.
You can use trait WithNull.